From d8be819df942e2e536541f9a20aa2dbbcc1ee0ac Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sat, 22 Jun 2024 03:32:14 +0000 Subject: [PATCH] tools: fix skip detection of test runner output Fix the Python test harness so that it no longer treats the `# skipped` part of the summary at the end of the built-in test runner output as marking the test as skipped. --- tools/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test.py b/tools/test.py index af88bc55cc0bfb..9d7838d7c0110a 100755 --- a/tools/test.py +++ b/tools/test.py @@ -83,7 +83,7 @@ def get_module(name, path): logger = logging.getLogger('testrunner') -skip_regex = re.compile(r'# SKIP\S*\s+(.*)', re.IGNORECASE) +skip_regex = re.compile(r'(?:\d+\.\.\d+|ok|not ok).*# SKIP\S*\s+(.*)', re.IGNORECASE) VERBOSE = False