make test script look nicer on failure
This commit is contained in:
parent
12e098b682
commit
4c6668f2b6
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ if [ $res = 0 ]; then
|
||||||
printf "\033[32mPASSED\033[0m\n"
|
printf "\033[32mPASSED\033[0m\n"
|
||||||
else
|
else
|
||||||
printf "\033[31mFAILED\033[0m\n"
|
printf "\033[31mFAILED\033[0m\n"
|
||||||
diff <(echo $out) <(echo $rout)
|
if [ "$status" != "$rstatus" ]; then
|
||||||
|
printf "exit: $rstatus (should be $status)\n"
|
||||||
|
fi
|
||||||
|
diff -Nau <(printf "%s\n" "$out") <(printf "%s\n" "$rout")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $res
|
exit $res
|
||||||
|
|
Loading…
Reference in a new issue