diff options
author | Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | 2020-02-28 11:28:48 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-02-27 20:21:03 -0800 |
commit | f017ca0eea24580e4d82831ceef2746f8b26b8e3 (patch) | |
tree | f3c3bdc1c8c114d8efab7eaa4429cc5705ef64cb /meta-python/recipes-devtools | |
parent | b48cb2b9505c88400a91492dbe23eabe8e1bc88f (diff) | |
download | meta-openembedded-f017ca0eea24580e4d82831ceef2746f8b26b8e3.tar.gz |
python3-appdirs: enable ptest
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-appdirs/run-ptest | 3 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-appdirs_1.4.3.bb | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-appdirs/run-ptest b/meta-python/recipes-devtools/python/python3-appdirs/run-ptest new file mode 100644 index 0000000000..5287f3e035 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-appdirs/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest | sed -e 's/\[100%\]//g' | sed -e 's/\.\.F/: FAIL/g' | sed -e 's/\.\.\./: PASS/g' | ||
diff --git a/meta-python/recipes-devtools/python/python3-appdirs_1.4.3.bb b/meta-python/recipes-devtools/python/python3-appdirs_1.4.3.bb index 6c01580724..2e183d888c 100644 --- a/meta-python/recipes-devtools/python/python3-appdirs_1.4.3.bb +++ b/meta-python/recipes-devtools/python/python3-appdirs_1.4.3.bb | |||
@@ -2,7 +2,20 @@ SUMMARY = "A small Python module for determining appropriate + platform-specific | |||
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=31625363c45eb0c67c630a2f73e438e4" | 3 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=31625363c45eb0c67c630a2f73e438e4" |
4 | 4 | ||
5 | SRC_URI += " \ | ||
6 | file://run-ptest \ | ||
7 | " | ||
8 | |||
5 | SRC_URI[md5sum] = "44c679904082a2133f5566c8a0d3ab42" | 9 | SRC_URI[md5sum] = "44c679904082a2133f5566c8a0d3ab42" |
6 | SRC_URI[sha256sum] = "9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92" | 10 | SRC_URI[sha256sum] = "9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92" |
7 | 11 | ||
8 | inherit pypi setuptools3 | 12 | inherit pypi setuptools3 ptest |
13 | |||
14 | RDEPENDS_${PN}-ptest += " \ | ||
15 | ${PYTHON_PN}-pytest \ | ||
16 | " | ||
17 | |||
18 | do_install_ptest() { | ||
19 | install -d ${D}${PTEST_PATH}/test | ||
20 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ | ||
21 | } | ||