]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs/167: adjust runtime with TIME_FACTOR
authorDave Chinner <dchinner@redhat.com>
Thu, 2 Jun 2022 00:31:25 +0000 (10:31 +1000)
committerZorro Lang <zlang@kernel.org>
Fri, 3 Jun 2022 05:18:06 +0000 (13:18 +0800)
xfs/167 takes between 6 and 10 minutes to run on my SSD based test
machines. It's running 50 loops of a unwritten extent conversion
test program whilst running a heavy fsstress workload in the
background. This does not need to run for 10 minutes on every auto
group regression test run. Shorten it to loop 5 * TIME_FACTOR
so that normal runtime drops to something sane but can still be
easily ramped up if soak/stress testing is being run.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/167

index 5f9850102aa614518bb352d4958299899883972b..15bb1854db51087d68fd4ea35611816e82c5a6d3 100755 (executable)
@@ -47,13 +47,11 @@ _require_fs_space $SCRATCH_MNT 10485760
 
 TEST_FILE=$SCRATCH_MNT/test_file
 TEST_PROG=$here/src/unwritten_sync
-LOOPS=50
+LOOPS=$((5 * $TIME_FACTOR))
 
 echo "*** test unwritten extent conversion under heavy I/O"
-
-workout
-
 rm -f $TEST_FILE
+workout
 $TEST_PROG $LOOPS $TEST_FILE
 
 echo "     *** test done"