diff options
| author | Christian Hesse <mail@eworm.de> | 2017-04-06 10:04:13 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-04-06 10:05:08 +0200 |
| commit | 2f76adc3cb674aeef60e2b0bc56b67b1ad9330cb (patch) | |
| tree | 8e4d41d25ff61de17aadc28cb7a82c2b45e167c0 /sam | |
| parent | 9e0e157c7f3e01a34fb9b23237703cc9b0b133d8 (diff) | |
| download | vis-2f76adc3cb674aeef60e2b0bc56b67b1ad9330cb.tar.gz vis-2f76adc3cb674aeef60e2b0bc56b67b1ad9330cb.tar.xz | |
test: fail test with error on bad return code
Close #10
Diffstat (limited to 'sam')
| -rwxr-xr-x | sam/test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sam/test.sh b/sam/test.sh index 03b083a..764f7c3 100755 --- a/sam/test.sh +++ b/sam/test.sh @@ -74,9 +74,10 @@ for t in $TESTS; do TESTS_RUN=$((TESTS_RUN+1)) $VIS "$IN" </dev/null 2>/dev/null + RETURN_CODE=$? printf "Running test %s with vis ... " "$t" - if [ $? -ne 0 -o ! -e "$VIS_OUT" ]; then + if [ $RETURN_CODE -ne 0 -o ! -e "$VIS_OUT" ]; then printf "ERROR\n" elif cmp -s "$REF" "$VIS_OUT"; then printf "OK\n" |
