python3-webcolors: 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 2020-03-20 10:20:10 +08:00 committed by Khem Raj
parent e4a1287bf1
commit e36ff205b2
2 changed files with 16 additions and 0 deletions

View File

@ -10,3 +10,17 @@ RDEPENDS_${PN}_class-target = "\
"
BBCLASSEXTEND = "native nativesdk"
SRC_URI += " \
file://run-ptest \
"
inherit ptest
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}

View File

@ -0,0 +1,2 @@
#!/bin/sh
pytest