aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-05-16 21:19:18 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-05-16 21:19:18 +1200
commit8c04734d052fcea040de269457051539a57bab18 (patch)
tree4b569ac8cd348d8abd206ea8bd4a081e30a8c70a
parenta6e6c920dc62b8e62b713c62ad2edcfbec756724 (diff)
downloadpgm-interlace-8c04734d052fcea040de269457051539a57bab18.tar.xz
Use result from program under test if no pgm output exists
-rwxr-xr-xtest/test.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh
index 6d51639..4c15e34 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -29,8 +29,11 @@ for i in {pass,error,xfail}/*.sh ; do
expected="$name.pgm.expected"
out="$name.pgm.out"
./$(basename $i) 2> $name.stderr.log
- [ -f $expected ] && diff $expected $out
result=$?
+ if [ -f $expected ] ; then
+ diff $expected $out
+ result=$?
+ fi
case $test_type in
pass)
if [ $result -eq 0 ] ; then