xfstests: don't suggest to run full diff when DIFF_LENGTH is 0
authorDavid Sterba <dsterba@suse.cz>
Fri, 24 Jan 2014 01:04:33 +0000 (12:04 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 24 Jan 2014 01:04:33 +0000 (12:04 +1100)
If DIFF_LENGTH is set to 0, the full output is available and the message
does not make sense.

Signed-off-by: David Sterba <dsterba@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
check

diff --git a/check b/check
index 61fb91b..e8d3943 100755 (executable)
--- a/check
+++ b/check
@@ -510,11 +510,11 @@ do
                                cat
                        else
                                head -n "$DIFF_LENGTH"
+                               echo "..."
+                               echo "(Run '$diff $seq.out $seqres.out.bad'" \
+                                       " to see the entire diff)"
                        fi; } | \
                        sed -e 's/^\(.\)/    \1/'
-                   echo "     ..."
-                   echo "     (Run '$diff $seq.out $seqres.out.bad' to see the" \
-                        "entire diff)"
                    err=true
                fi
            fi