]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/062: don't leave debug files in $here on failure
authorDave Chinner <dchinner@redhat.com>
Wed, 27 Nov 2024 00:06:31 +0000 (11:06 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 14:19:06 +0000 (22:19 +0800)
Move them to $seqres.<debug-file> so they don't pollute the source
tree that fstests is running from.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/062

index f0904992d16010c3492054e9a6cfce0a9fd88c83..896590403fda8e0dce2447a3a06701663cd7ba3a 100755 (executable)
@@ -196,7 +196,7 @@ echo "*** compare before and after backups"
 diff $tmp.backup1 $tmp.backup2
 if [ $? -ne 0 ]; then
        echo "urk, failed - creating $seq.backup1 and $seq.backup2"
-       cp $tmp.backup1 $seq.backup1 && cp $tmp.backup2 $seq.backup2
+       cp $tmp.backup1 $seqres.backup1 && cp $tmp.backup2 $seqres.backup2
        status=1
        exit
 fi