From e36ff205b27e3043c19c17f70156d11f20311a04 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Fri, 20 Mar 2020 10:20:10 +0800 Subject: python3-webcolors: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-webcolors.inc | 14 ++++++++++++++ .../recipes-devtools/python/python3-webcolors/run-ptest | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-webcolors/run-ptest (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python-webcolors.inc b/meta-python/recipes-devtools/python/python-webcolors.inc index ef254e33b4..ad012c9795 100644 --- a/meta-python/recipes-devtools/python/python-webcolors.inc +++ b/meta-python/recipes-devtools/python/python-webcolors.inc @@ -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/ +} diff --git a/meta-python/recipes-devtools/python/python3-webcolors/run-ptest b/meta-python/recipes-devtools/python/python3-webcolors/run-ptest new file mode 100644 index 0000000000..40c284799d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-webcolors/run-ptest @@ -0,0 +1,2 @@ +#!/bin/sh +pytest -- cgit v1.2.3-54-g00ecf