diff mbox series

xfs/191-input-validation:Fix issue that the test takes too long

Message ID 20191120081724.113792-1-lubaihua0331@gmail.com (mailing list archive)
State New, archived
Headers show
Series xfs/191-input-validation:Fix issue that the test takes too long | expand

Commit Message

Baihua Lu Nov. 20, 2019, 8:17 a.m. UTC
When test is passed, _check_filesystems will execute. If there is no
mkfs a new XFS filesystem $SCRATCH_DEV in this test, in the check
filesystems stage, xfs_logprint will be failed for having dirty log and
xfs_repaire will take a long time.

Signed-off-by: Baihua Lu <lubaihua0331@gmail.com>
---
 tests/xfs/191-input-validation | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/xfs/191-input-validation b/tests/xfs/191-input-validation
index b6658015..fd239dbb 100755
--- a/tests/xfs/191-input-validation
+++ b/tests/xfs/191-input-validation
@@ -34,7 +34,7 @@  _supported_os Linux
 _require_scratch
 _require_xfs_mkfs_validation
 
-
+_scratch_mkfs >/dev/null 2>&1
 
 rm -f $seqres.full
 echo silence is golden