Skip to content

Commit

Permalink
fix: properly redirect stderr to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
imnotjames committed Nov 12, 2023
1 parent 7e8bfde commit 8bcddd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ def run_testcase(suite: str, testcase: str):
with open("{0}.out".format(qtest), "w") as actual_output_file:
actual_output_file.write(LICENSE_PREFIX)

result = os.system(
"{0} {1} 2>> {1}.out >> {1}.out".format(get_interpreter(), qtest)
)
result = os.system("{0} {1} >> {1}.out 2>&1".format(get_interpreter(), qtest))

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

0 comments on commit 8bcddd2

Please sign in to comment.