summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-inotify/run-ptest
diff options
context:
space:
mode:
authorZheng Qiu <zheng.qiu@windriver.com>2022-11-28 10:44:57 -0500
committerKhem Raj <raj.khem@gmail.com>2022-11-29 14:07:51 -0800
commit4091a12ef94a5ede27d4c303d0eb2741499bb00f (patch)
tree091290208162da10c577ae284a26b6beaf1f1ad5 /meta-python/recipes-devtools/python/python3-inotify/run-ptest
parentf5cc539e40ef55f92258153135b337adf045e4a3 (diff)
downloadmeta-openembedded-4091a12ef94a5ede27d4c303d0eb2741499bb00f.tar.gz
python3-inotify: add ptest
Add ptest provided from the source code, and run it using pytest. Since the tarball provided with pypi does not include ptest, switch the source to be its git repo. ptest result: PASS FAIL SKIP qemux86-64 5 3 1 qemuarm64 5 3 1 This issue exists since inotify adds unit test support, and it is reported here: https://github.com/dsoprea/PyInotify/issues/95 Signed-off-by: Zheng Qiu <zheng.qiu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-inotify/run-ptest')
-rw-r--r--meta-python/recipes-devtools/python/python3-inotify/run-ptest3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-inotify/run-ptest b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
new file mode 100644
index 0000000000..3385d68939
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'