]> err.no Git - util-linux/commitdiff
tests: fix the final message for subtests
authorKarel Zak <kzak@redhat.com>
Tue, 20 Jan 2009 22:42:33 +0000 (23:42 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:35:22 +0000 (23:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/functions.sh

index 935016c9965291aa98ab479cbc96cd9463d57133..581059d91ea8f351c8abc93a4cb3dc2bfa71c9eb 100644 (file)
@@ -218,14 +218,6 @@ function ts_finalize {
                chown ${TS_SUID_USER[$idx]}.${TS_SUID_GROUP[$idx]} $PROG &> /dev/null
        done
 
-       if [ -s $TS_EXPECTED ]; then
-               ts_gen_diff
-               if [ $? -eq 1 ]; then
-                       ts_failed "$1"
-               fi
-               ts_ok "$1"
-       fi
-
        if [ $TS_NSUBTESTS -ne 0 ]; then
                printf "%13s..."
                if [ $TS_NSUBFAILED -ne 0 ]; then
@@ -234,6 +226,15 @@ function ts_finalize {
                        ts_ok "all $TS_NSUBTESTS sub-tests PASSED"
                fi
        fi
+
+       if [ -s $TS_EXPECTED ]; then
+               ts_gen_diff
+               if [ $? -eq 1 ]; then
+                       ts_failed "$1"
+               fi
+               ts_ok "$1"
+       fi
+
        ts_skip "output undefined"
 }