diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-25 22:36:59 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-25 14:20:38 -0700 |
| commit | 6eacd028544602fcb4f458c72c317cd815106b33 (patch) | |
| tree | 1a1abcc62c0ac1a0d27a9ba794705c3b1b37bef7 /meta-python/recipes-devtools/python/python3-pyasyncore | |
| parent | 8fa97bdc1fda46a3bed78c034fae73f24dbbb77f (diff) | |
| download | meta-openembedded-6eacd028544602fcb4f458c72c317cd815106b33.tar.gz | |
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>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pyasyncore')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest b/meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest new file mode 100644 index 0000000000..52f069c3b9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | cd $(dirname $0)/tests | ||
| 4 | |||
| 5 | # Failing cases are not transformed, only passing and skipped ones. | ||
| 6 | # Unitttest will output a summary at the end for each failing testcase, | ||
| 7 | # starting each line with "FAIL: " followed by the testcase name. | ||
| 8 | |||
| 9 | python3 -m unittest -v 2>&1 | sed -e 's/\(test_[^ ]*\).*ok$/PASS: \1/' -e 's/\(test_[^ ]*\).*skipped.*/SKIP: \1/' | ||
