We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1639113 commit e2c2050Copy full SHA for e2c2050
tests/run_test.sh
@@ -90,11 +90,17 @@ for test in "$@"; do
90
cat - "$test.in" |
91
"$cmd")
92
fi
93
- # exit code stored in $?
+ result_code=$?
94
95
- if [ $? -ne $expect ]; then
+ if [ $result_code -ne $expect ]; then
96
# If the exit code is wrong, the test is a failure and --bless won't help
97
- echo "${red}failed${off}"; exit_code=1; continue
+ echo "${red}failed${off} (exit code = $result_code)"; exit_code=1
98
+ if [ "$outfile" != "/dev/null" ]; then
99
+ echo "---------------------------------------"
100
+ cat "$test.produced"
101
+ echo "---------------------------------------\n"
102
+ fi
103
+ continue
104
105
106
# Strip the first and last line of the output.
0 commit comments