mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-06 04:49:29 +00:00
python3-pyasyncore: fix ptests
The tests are using only Python's unittest module, not pytest - so adapt the run-ptest script to invoke unittest instead pytest. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $(dirname $0)/tests
|
||||
|
||||
# Failing cases are not transformed, only passing and skipped ones.
|
||||
# Unitttest will output a summary at the end for each failing testcase,
|
||||
# starting each line with "FAIL: " followed by the testcase name.
|
||||
|
||||
python3 -m unittest -v 2>&1 | sed -e 's/\(test_[^ ]*\).*ok$/PASS: \1/' -e 's/\(test_[^ ]*\).*skipped.*/SKIP: \1/'
|
||||
Reference in New Issue
Block a user