From 6eacd028544602fcb4f458c72c317cd815106b33 Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Sat, 25 Oct 2025 22:36:59 +0200 Subject: 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 Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest (limited to 'meta-python/recipes-devtools/python/python3-pyasyncore/run-ptest') 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 @@ +#!/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/' -- cgit v1.2.3-54-g00ecf