Skip to contentSkip to conversation

generic/388: use TIME_FACTOR to scale test duration

PATCH New Darrick J. Wong 1 participant 1 message Nov 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/388: use TIME_FACTOR to scale test duration

From: Darrick J. Wong <[email protected]>

Use TIME_FACTOR to increase the amount of time we spend testing log shutdown recovery.

---
 tests/generic/388 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/388 +1 -1
index 2760208..4f5a63b 100755
@@ -65,7 +65,7 @@ _scratch_mkfs >> $seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV
 _scratch_mount || _fail "mount failed"
 
-for i in $(seq 1 50); do
+for i in $(seq 1 $((50 * TIME_FACTOR)) ); do
 	($FSSTRESS_PROG $FSSTRESS_AVOID -d $SCRATCH_MNT -n 999999 -p 4 >> $seqres.full &) \
 		> /dev/null 2>&1