summaryrefslogtreecommitdiff
path: root/test/regress/run_regression.py
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-08-04 00:04:20 -0700
committerGitHub <noreply@github.com>2019-08-04 00:04:20 -0700
commitd3070131bace10028498003c2f6cfd6f40a50358 (patch)
treed95567be644b4660cddd15c851813e43ec3c3932 /test/regress/run_regression.py
parent243a1d58a139077ecf19ac8a68573e51c08e4621 (diff)
Fix regression script for incremental SMT-LIB v2 benchmarks. (#3155)
The regression script did not extract the expected status from incremental SMT-LIB v2 benchmarks correctly if status was given via (set-info :status ...). The script used re.search for finding the status, which only searches for the first occurrence instead of finding all (set-info :status ...). This commit fixes the issue by using re.findall instead.
Diffstat (limited to 'test/regress/run_regression.py')
-rwxr-xr-xtest/regress/run_regression.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/regress/run_regression.py b/test/regress/run_regression.py
index 59913a9d6..8918c75c1 100755
--- a/test/regress/run_regression.py
+++ b/test/regress/run_regression.py
@@ -213,10 +213,10 @@ def run_regression(unsat_cores, proofs, dump, use_skip_return_code, wrapper,
if expected_output == '' and expected_error == '':
match = None
if status_regex:
- match = re.search(status_regex, benchmark_content)
+ match = re.findall(status_regex, benchmark_content)
if match:
- expected_output = status_to_output(match.group(1))
+ expected_output = status_to_output('\n'.join(match))
elif expected_exit_status is None:
# If there is no expected output/error and the exit status has not
# been set explicitly, the benchmark is invalid.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback