Skip to content

Commit

Permalink
display more details in case of a failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendoligez committed Feb 13, 2024
1 parent 783df0a commit 4f43abb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/TOOLS/time_one_test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
FILE="$1"
TOOLDIR="$2"

exec "$TOOLDIR"/do_one_test "$FILE" "$TOOLDIR/separator" \
"$TOOLDIR"/do_one_test "$FILE" "$TOOLDIR/separator" \
"$FILE.out" "$FILE.err" \
>"$FILE.out" 2>"$FILE.err"
retcode=$?
case $retcode in
0) ;;
*)
printf "failed with return code %d\n" $retcode
printf "#### stdout:\n"
cat "$FILE.out"
printf "#### stderr:\n"
cat "$FILE.err"
exit $retcode
;;
esac

0 comments on commit 4f43abb

Please sign in to comment.