python3-markupsafe: 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-04-21 09:58:53 +08:00 committed by Khem Raj
parent 681c4b3790
commit a626304f37
2 changed files with 17 additions and 1 deletions

View File

@ -7,8 +7,21 @@ SRC_URI[md5sum] = "43fd756864fe42063068e092e220c57b"
SRC_URI[sha256sum] = "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"
PYPI_PACKAGE = "MarkupSafe"
inherit pypi
inherit pypi ptest
RDEPENDS_${PN} += "${PYTHON_PN}-stringold"
BBCLASSEXTEND = "native nativesdk"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -f ${S}/tests/* ${D}${PTEST_PATH}/tests/
}

View File

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