summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryoni206 <yoni206@users.noreply.github.com>2018-04-20 10:26:50 -0700
committerAndres Noetzli <andres.noetzli@gmail.com>2018-04-20 10:26:50 -0700
commitbd2f0ebc852a877e1bec4a8c2efca1539db8e4fb (patch)
tree8d2c49f602550c241ede463acab2adf37cc3ca74
parentadc22697d4c44c54993aa2048dcbd705cbebd466 (diff)
Allow metadata lines in test files to have leading spaces (#1799)
Currently, lines like `;EXPECT: sat` instead of `; EXPECT: sat` cause problems. This PR fixes it.
-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 260ab3284..db72854eb 100755
--- a/test/regress/run_regression.py
+++ b/test/regress/run_regression.py
@@ -168,10 +168,10 @@ def run_regression(proof, dump, wrapper, cvc4_binary, benchmark_path, timeout):
expected_exit_status = None
command_line = ''
for line in metadata_lines:
- # Skip lines that do not start with "%"
+ # Skip lines that do not start with a comment character.
if line[0] != comment_char:
continue
- line = line[2:]
+ line = line[1:].lstrip()
if line.startswith(SCRUBBER):
scrubber = line[len(SCRUBBER):]
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback