]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: don't show diff for TS_KNOWN_FAIL
authorKarel Zak <kzak@redhat.com>
Tue, 27 Aug 2019 12:38:21 +0000 (14:38 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Aug 2019 12:38:21 +0000 (14:38 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/functions.sh

index 99af0e28951f67fd8717be3c934dbf12f24b5fee..0718a61474c5a88ecca0fc699d440dff939cc092 100644 (file)
@@ -481,7 +481,7 @@ function ts_gen_diff {
 
        if [ $? -ne 0 ] || [ -s $TS_DIFF ]; then
                res=1
-               if [ "$TS_SHOWDIFF" == "yes" ]; then
+               if [ "$TS_SHOWDIFF" == "yes" -a "$TS_KNOWN_FAIL" != "yes" ]; then
                        echo
                        echo "diff-{{{"
                        cat $TS_DIFF