From afa6d7ad45daa8b8092f6ab076e7e8e66bb71ceb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 5 Oct 2026 16:13:40 +0500 Subject: project.ctest_driver: fix if no regexes --- project/ctest_driver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/ctest_driver.py b/project/ctest_driver.py index 4909d87..c78e6f1 100644 --- a/project/ctest_driver.py +++ b/project/ctest_driver.py @@ -55,6 +55,8 @@ def match(s, regex): def match_pass_regexes(output, regexes): + if not regexes: + return True for regex in regexes: if match(output, regex): continue @@ -66,6 +68,8 @@ def match_pass_regexes(output, regexes): def match_fail_regexes(output, regexes): + if not regexes: + return False for regex in regexes: if not match(output, regex): continue -- cgit v1.3