python3-prettytable: Enable ptest

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zang Ruochen authored and Khem Raj committed 2020-04-10 17:48:38 -07:00
1 parent 1ec13d7d95
commit 8a078a9d61
2 files changed
+16

No files matched your search

@@ -23,3 +23,16 @@ UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/PrettyTable/"
UPSTREAM_CHECK_REGEX = "/PrettyTable/(?P<pver>(\d+[\.\-_]*)+)"
BBCLASSEXTEND = "native nativesdk"
inherit ptest
SRC_URI += " \
file://run-ptest \
"
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
cp -f ${S}/prettytable_test.py ${D}${PTEST_PATH}/
}
@@ -0,0 +1,3 @@
#!/bin/sh
pytest