diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-03-20 10:20:10 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-20 07:44:29 -0700 |
commit | e36ff205b27e3043c19c17f70156d11f20311a04 (patch) | |
tree | 3a64896b0901a1e4d23d8079af3b8b6ef6efeec3 | |
parent | e4a1287bf181483a95d10e0074c894c86a4620d3 (diff) | |
download | meta-openembedded-e36ff205b27e3043c19c17f70156d11f20311a04.tar.gz |
python3-webcolors: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python-webcolors.inc | 14 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-webcolors/run-ptest | 2 |
2 files changed, 16 insertions, 0 deletions
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 = "\ | |||
10 | " | 10 | " |
11 | 11 | ||
12 | BBCLASSEXTEND = "native nativesdk" | 12 | BBCLASSEXTEND = "native nativesdk" |
13 | |||
14 | SRC_URI += " \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | inherit ptest | ||
18 | |||
19 | RDEPENDS_${PN}-ptest += " \ | ||
20 | ${PYTHON_PN}-pytest \ | ||
21 | " | ||
22 | |||
23 | do_install_ptest() { | ||
24 | install -d ${D}${PTEST_PATH}/tests | ||
25 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
26 | } | ||
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 @@ | |||
1 | #!/bin/sh | ||
2 | pytest | ||