]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
check: use full paths for diff on error
authorDave Chinner <dchinner@redhat.com>
Fri, 2 Nov 2018 01:09:48 +0000 (12:09 +1100)
committerEryu Guan <guaneryu@gmail.com>
Sat, 3 Nov 2018 08:49:12 +0000 (16:49 +0800)
i don't run fstests from the source directory, so when I get a
golden image mismatch the relative path to the golden output is
not useful:

(Run 'diff -u tests/generic/013.out /home/dave/src/xfstests-dev/results//xfs_64k/generic/013.out.bad'  to see the entire diff)

Change the output to emit the real path for the golden out so this
can be cut and pasted and run from anywhere.

(Run 'diff -u /home/dave/src/xfstests-dev/tests/generic/013.out /home/dave/src/xfstests-dev/results//xfs_64k/generic/013.out.bad'  to see the entire diff)

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
check

diff --git a/check b/check
index f3c8021d94b91eae324010f9a20a93d5f91bf71e..59f94c1c33f9031cdd48e8ddd2dda0eff87932ff 100755 (executable)
--- a/check
+++ b/check
@@ -799,7 +799,7 @@ for section in $HOST_OPTIONS_SECTIONS; do
                        else
                                head -n "$DIFF_LENGTH"
                                echo "..."
-                               echo "(Run '$diff $seq.out $seqres.out.bad'" \
+                               echo "(Run '$diff $here/$seq.out $seqres.out.bad'" \
                                        " to see the entire diff)"
                        fi; } | sed -e 's/^\(.\)/    \1/'
                        err=true