Skip to content

Commit 8bcddd2

Browse files
committed
fix: properly redirect stderr to stdout
1 parent 7e8bfde commit 8bcddd2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/run_tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ def run_testcase(suite: str, testcase: str):
6969
with open("{0}.out".format(qtest), "w") as actual_output_file:
7070
actual_output_file.write(LICENSE_PREFIX)
7171

72-
result = os.system(
73-
"{0} {1} 2>> {1}.out >> {1}.out".format(get_interpreter(), qtest)
74-
)
72+
result = os.system("{0} {1} >> {1}.out 2>&1".format(get_interpreter(), qtest))
7573

7674
with open("%s.out" % qtest) as actual_output_file:
7775
actual_output = actual_output_file.read()

0 commit comments

Comments
 (0)