Output expected and actual console if test fails

The decrementer test has failed a few times in travis but it's works
locally. This should give us more info to debug why.

Signed-off-by: Michael Neuling <mikey@neuling.org>
pull/197/head
Michael Neuling 5 years ago
parent 13da4caafb
commit e26b0491c9

@ -30,5 +30,10 @@ cp exp.out /tmp


diff -q test.out exp.out && echo "$TEST PASS" && exit 0 diff -q test.out exp.out && echo "$TEST PASS" && exit 0


echo Expected output:
cat exp.out
echo Actual output:
cat test.out

echo "$TEST FAIL ********" echo "$TEST FAIL ********"
exit 1 exit 1

@ -34,5 +34,10 @@ cp exp.out /tmp


diff -q test.out exp.out && echo "$TEST PASS" && exit 0 diff -q test.out exp.out && echo "$TEST PASS" && exit 0


echo Expected output:
cat exp.out
echo Actual output:
cat test.out

echo "$TEST FAIL ********" echo "$TEST FAIL ********"
exit 1 exit 1

Loading…
Cancel
Save