diff options
Diffstat (limited to 'tools/testh5toh4')
-rw-r--r-- | tools/testh5toh4 | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/testh5toh4 b/tools/testh5toh4 index 3210080..87f3ef3 100644 --- a/tools/testh5toh4 +++ b/tools/testh5toh4 @@ -39,6 +39,7 @@ CONVERT() "-m") + multirun=passed shift for i in $@ do @@ -61,10 +62,13 @@ CONVERT() tr '\n' ' ' <$expect |tr -s ' \t' |fold >$expect-norm if $cmp $expect-norm $actual-norm; then - echo " PASSED" - else - echo "*FAILED*" - echo " Actual result (*.tmp) differs from expected result (*.dmp)" + set unrelated + else + if test "passed" = "$multirun"; then + echo "*FAILED*" + echo " Actual result (*.tmp) differs from expected result (*.dmp)" + multirun=failed + fi nerrors="`expr $nerrors + 1`" test yes = "$verbose" && $diff $expect $actual |sed 's/^/ /' fi @@ -75,6 +79,9 @@ CONVERT() rm -f $actual fi done + if test "passed" = "$multirun"; then + echo " PASSED" + fi ;; |