From: Darrick J. Wong Date: Tue, 15 Sep 2020 01:43:40 +0000 (-0700) Subject: xfs/{111,137}: replace open-coded calls to repair with _scratch_xfs_repair X-Git-Tag: v2022.05.01~688 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=6b6a24f76d525fc70f17a37b0640f5f00ee53b13;hp=66dd0c19da593d43ef2b039e0e9605ff21021283 xfs/{111,137}: replace open-coded calls to repair with _scratch_xfs_repair Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Reviewed-by: Zorro Lang Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/111 b/tests/xfs/111 index 0db33cb8..1f778966 100755 --- a/tests/xfs/111 +++ b/tests/xfs/111 @@ -62,7 +62,7 @@ $XFS_FSR_PROG -g $SCRATCH_MNT | _filter_scratch # Fix up intentional corruption so test can pass _scratch_unmount -$XFS_REPAIR_PROG $SCRATCH_DEV >> $seqres.full 2>&1 +_scratch_xfs_repair >> $seqres.full 2>&1 status=0 exit diff --git a/tests/xfs/137 b/tests/xfs/137 index 79106c66..c10860bb 100755 --- a/tests/xfs/137 +++ b/tests/xfs/137 @@ -64,11 +64,11 @@ else fi # verify that repair detects invalid LSNs as well -$XFS_REPAIR_PROG -n $SCRATCH_DEV >> $seqres.full 2>&1 || \ +_scratch_xfs_repair -n >> $seqres.full 2>&1 || \ echo repair failure detected # repair for real so the post-test check can verify repair fixed things up -$XFS_REPAIR_PROG $SCRATCH_DEV >> $seqres.full 2>&1 +_scratch_xfs_repair >> $seqres.full 2>&1 # success, all done status=0