aboutsummaryrefslogtreecommitdiff
path: root/sam/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sam/test.sh')
-rwxr-xr-xsam/test.sh3
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"