Skip to content

Commit 8d57087

Browse files
Merge pull request #36 from COMP1511UNSW/dylanb/fix-generate_expected_output
Fix generate_expected_output
2 parents 87275d1 + 2694364 commit 8d57087

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

run_tests.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,19 @@ def print_expected_output(tests: Dict[str, _Test], args: Namespace, file) -> Non
591591
continue
592592
# override any checkers, so expected output can be generated from solutions with non-permitted features
593593
test.parameters["checkers"] = []
594+
# override limits
595+
test.parameters["max_stdout_bytes"] = 100000000000000000000
596+
test.parameters["max_stderr_bytes"] = 100000000000000000000
597+
test.parameters["max_file_size_bytes"] = 1000000000
598+
test.parameters["max_real_seconds"] = 1000000000
599+
test.parameters["max_cpu_seconds"] = 1000000000
600+
# override dcc output checking
601+
test.parameters["dcc_output_checking"] = False
602+
594603
run_one_test(test, file=dev_null)
595604
if not hasattr(test, "stdout"):
596605
die(f"Test {label} could not be run")
597606
if test.stdout:
598607
print(f"{label} expected_stdout={repr(test.stdout)}", file=file)
599608
if test.stderr:
600-
print(f"{label} expected_stdout={repr(test.stderr)}", file=file)
609+
print(f"{label} expected_stderr={repr(test.stderr)}", file=file)

0 commit comments

Comments
 (0)