xfs
[Top] [All Lists]

[PATCH 2/3] xfstests 322: use _filter_scratch()

To: xfs@xxxxxxxxxxx
Subject: [PATCH 2/3] xfstests 322: use _filter_scratch()
From: Lukas Czerner <lczerner@xxxxxxxxxx>
Date: Tue, 17 Dec 2013 15:02:26 +0100
Cc: Lukas Czerner <lczerner@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1387288947-12650-1-git-send-email-lczerner@xxxxxxxxxx>
References: <1387288947-12650-1-git-send-email-lczerner@xxxxxxxxxx>
Signed-off-by: Lukas Czerner <lczerner@xxxxxxxxxx>
---
 tests/generic/322     | 8 ++++----
 tests/generic/322.out | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/generic/322 b/tests/generic/322
index 1cea133..94f8f68 100644
--- a/tests/generic/322
+++ b/tests/generic/322
@@ -65,12 +65,12 @@ _rename_test()
        mv $SCRATCH_MNT/foo $SCRATCH_MNT/bar
        $XFS_IO_PROG -c "fsync" $SCRATCH_MNT/bar
        _load_flakey_table $FLAKEY_DROP_WRITES
-       md5sum $SCRATCH_MNT/bar
+       md5sum $SCRATCH_MNT/bar | _filter_scratch
        _unmount_flakey
 
        _load_flakey_table $FLAKEY_ALLOW_WRITES
        _mount_flakey
-       md5sum $SCRATCH_MNT/bar
+       md5sum $SCRATCH_MNT/bar | _filter_scratch
        _unmount_flakey
        _check_scratch_fs $FLAKEY_DEV
        [ $? -ne 0 ] && _fatal "fsck failed"
@@ -87,12 +87,12 @@ _write_after_fsync_rename_test()
        mv $SCRATCH_MNT/foo $SCRATCH_MNT/bar
        $XFS_IO_PROG -c "fsync" $SCRATCH_MNT/bar
        _load_flakey_table $FLAKEY_DROP_WRITES
-       md5sum $SCRATCH_MNT/bar
+       md5sum $SCRATCH_MNT/bar | _filter_scratch
        _unmount_flakey
 
        _load_flakey_table $FLAKEY_ALLOW_WRITES
        _mount_flakey
-       md5sum $SCRATCH_MNT/bar
+       md5sum $SCRATCH_MNT/bar | _filter_scratch
        _unmount_flakey
        _check_scratch_fs $FLAKEY_DEV
        [ $? -ne 0 ] && _fatal "fsck failed"
diff --git a/tests/generic/322.out b/tests/generic/322.out
index 0d9f274..a23f890 100644
--- a/tests/generic/322.out
+++ b/tests/generic/322.out
@@ -1,7 +1,7 @@
 QA output created by 322
 fsync rename test
-ca539970d4b1fa1f34213ba675007381  /mnt/scratch/bar
-ca539970d4b1fa1f34213ba675007381  /mnt/scratch/bar
+ca539970d4b1fa1f34213ba675007381  SCRATCH_MNT/bar
+ca539970d4b1fa1f34213ba675007381  SCRATCH_MNT/bar
 fsync rename test
-d34ff04c17ef7068d78d0c4be49cfe57  /mnt/scratch/bar
-d34ff04c17ef7068d78d0c4be49cfe57  /mnt/scratch/bar
+d34ff04c17ef7068d78d0c4be49cfe57  SCRATCH_MNT/bar
+d34ff04c17ef7068d78d0c4be49cfe57  SCRATCH_MNT/bar
-- 
1.8.3.1

<Prev in Thread] Current Thread [Next in Thread>