python3-webcolors: Enable ptest
PATCH 1/1 python3-webcolors: Enable ptest
Signed-off-by Zang Ruochen <[email protected]>
--- .../recipes-devtools/python/python-webcolors.inc | 14 ++++++++++++++ .../python/python3-webcolors/run-ptest | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-webcolors/run-ptest
meta-python/recipes-devtools/python/python-webcolors.inc +14 -0
@@ -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/ +}
meta-python/recipes-devtools/python/python3-webcolors/run-ptest new file +2 -0
@@ -0,0 +1,2 @@ +#!/bin/sh +pytest
Signature · 1 line
2.20.1