summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2019-11-04 17:04:04 -0800
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-11-04 19:04:04 -0600
commitb700c01ac0e2cf5fcf3e41ade49f36e0fbc7a2bc (patch)
tree096c7527a553b8099c14d7fc17d4b2290e05ded4
parent2a888bdb47b18ea29f67659b5d64aad6d8da389b (diff)
[Regressions] Support for running w/ default args (#3436)
-rwxr-xr-xtest/regress/run_regression.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/regress/run_regression.py b/test/regress/run_regression.py
index c7eef8a1d..d445264fb 100755
--- a/test/regress/run_regression.py
+++ b/test/regress/run_regression.py
@@ -18,13 +18,13 @@ import subprocess
import sys
import threading
-SCRUBBER = 'SCRUBBER: '
-ERROR_SCRUBBER = 'ERROR-SCRUBBER: '
-EXPECT = 'EXPECT: '
-EXPECT_ERROR = 'EXPECT-ERROR: '
-EXIT = 'EXIT: '
-COMMAND_LINE = 'COMMAND-LINE: '
-REQUIRES = 'REQUIRES: '
+SCRUBBER = 'SCRUBBER:'
+ERROR_SCRUBBER = 'ERROR-SCRUBBER:'
+EXPECT = 'EXPECT:'
+EXPECT_ERROR = 'EXPECT-ERROR:'
+EXIT = 'EXIT:'
+COMMAND_LINE = 'COMMAND-LINE:'
+REQUIRES = 'REQUIRES:'
EXIT_OK = 0
EXIT_FAILURE = 1
@@ -219,17 +219,17 @@ def run_regression(unsat_cores, proofs, dump, use_skip_return_code, wrapper,
line = line[1:].lstrip()
if line.startswith(SCRUBBER):
- scrubber = line[len(SCRUBBER):]
+ scrubber = line[len(SCRUBBER):].strip()
elif line.startswith(ERROR_SCRUBBER):
- error_scrubber = line[len(ERROR_SCRUBBER):]
+ error_scrubber = line[len(ERROR_SCRUBBER):].strip()
elif line.startswith(EXPECT):
- expected_output += line[len(EXPECT):]
+ expected_output += line[len(EXPECT):].strip() + '\n'
elif line.startswith(EXPECT_ERROR):
- expected_error += line[len(EXPECT_ERROR):]
+ expected_error += line[len(EXPECT_ERROR):].strip() + '\n'
elif line.startswith(EXIT):
- expected_exit_status = int(line[len(EXIT):])
+ expected_exit_status = int(line[len(EXIT):].strip())
elif line.startswith(COMMAND_LINE):
- command_lines.append(line[len(COMMAND_LINE):])
+ command_lines.append(line[len(COMMAND_LINE):].strip())
elif line.startswith(REQUIRES):
requires.append(line[len(REQUIRES):].strip())
expected_output = expected_output.strip()
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback