summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-08-02 21:21:26 -0700
committerZorro Lang <zlang@kernel.org>2022-08-06 00:57:22 +0800
commit437f7742b8f1a71bd12c7b778d5d590166e9f800 (patch)
tree11254ad787a706d2aa7a17967b41876f1067f01a
parent378cf1c48143fed4ada0ce65ee700509040d1e20 (diff)
downloadxfstests-437f7742b8f1a71bd12c7b778d5d590166e9f800.tar.zst
xfs/432: fix this test when external devices are in use
This program exercises metadump and mdrestore being run against the scratch device. Therefore, the test must pass external log / rt device arguments to xfs_repair -n to check the "restored" filesystem. Fix the incorrect usage, and report repair failures, since this test has been silently failing for a while now. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-xtests/xfs/4323
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/xfs/432 b/tests/xfs/432
index 86012f0b..e1e610d0 100755
--- a/tests/xfs/432
+++ b/tests/xfs/432
@@ -89,7 +89,8 @@ _scratch_xfs_metadump $metadump_file -w
xfs_mdrestore $metadump_file $metadump_img
echo "Check restored metadump image"
-$XFS_REPAIR_PROG -n $metadump_img >> $seqres.full 2>&1
+SCRATCH_DEV=$metadump_img _scratch_xfs_repair -n &>> $seqres.full || \
+ echo "xfs_repair on restored fs returned $?"
# success, all done
status=0