Skip to content

Commit df2d562

Browse files
committed
stdout
1 parent 10fbdbd commit df2d562

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/run_standalone_tests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ for i in "${!tests[@]}"; do
9393
# execute the test in the background
9494
# redirect to a log file that buffers test output. since the tests will run in the background,
9595
# we cannot let them output to std{out,err} because the outputs would be garbled together
96-
python ${defaults} "$test" 2>&1 > "parallel_test_output-$i.txt" &
96+
python ${defaults} "$test" &> "parallel_test_output-$i.txt" &
9797
test_ids+=($i) # save the test's id in an array with running tests
9898
pids+=($!) # save the PID in an array with running tests
9999

@@ -133,13 +133,13 @@ printf '\n'
133133
if [[ ${#failed_tests[@]} -gt 0 ]]; then
134134
printf "Failed tests:\n"
135135
for i in "${failed_tests[@]}"; do
136-
printf "\n\n"
137-
pritf "=" * 80
136+
printf "\n" * 5
137+
printf "=" * 80
138138
printf "${tests[$i]}\n"
139-
pritf "-" * 80
139+
printf "-" * 80
140140
# show the output of the failed test
141141
cat "parallel_test_output-$i.txt"
142-
pritf "=" * 80
142+
printf "=" * 80
143143
done
144144
else
145145
printf "All tests passed!\n"

0 commit comments

Comments
 (0)