At the end of the test the fsstress work dir is deleted, this suggests the test really requires a scratch device and not a test device. Change it accordingly. Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx> --- tests/generic/070 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/generic/070 b/tests/generic/070 index 678344fa011d..c98f445ae4b8 100755 --- a/tests/generic/070 +++ b/tests/generic/070 @@ -13,7 +13,6 @@ _begin_fstest attr udf auto quick stress _cleanup() { cd / - rm -rf $TEST_DIR/fsstress rm -f $tmp.* } @@ -24,11 +23,14 @@ _cleanup() # real QA test starts here _supported_fs generic -_require_test +_require_scratch _require_attrs +_scratch_mkfs >/dev/null 2>&1 +_scratch_mount + FSSTRESS_ARGS=`_scale_fsstress_args \ - -d $TEST_DIR/fsstress \ + -d $SCRATCH_MNT \ -f allocsp=0 \ -f freesp=0 \ -f bulkstat=0 \ @@ -40,5 +42,7 @@ FSSTRESS_ARGS=`_scale_fsstress_args \ -p 1 -n 10000 -S c` $FSSTRESS_PROG $FSSTRESS_ARGS >$seqres.full 2>&1 +_scratch_unmount + status=$? exit -- 2.17.1