aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--project/ctest_driver.py4
1 files changed, 4 insertions, 0 deletions
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