]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: mkfs scratch device in generic/294
authorEric Sandeen <sandeen@redhat.com>
Sun, 6 Oct 2013 20:42:31 +0000 (20:42 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 16 Oct 2013 20:17:35 +0000 (15:17 -0500)
test 294 is using the scratch device w/o mkfs-ing it first,
this runs the risk of following a test which completely
fills the fs, causing 294 to fail.

add "rm -f $seqres.full" as well, it was growing on every run.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
tests/generic/294

index fa7f3393ece463001c0faa30d4e1bb736f6d0007..3fa6ba21d200e632940920056029c37b03e01930 100755 (executable)
@@ -48,6 +48,9 @@ _supported_fs generic
 _supported_os Linux
 _require_scratch
 
+rm -f $seqres.full
+_scratch_mkfs > $seqres.full 2>&1 || _fail "Could not mkfs scratch device"
+
 THIS_TEST_DIR=$SCRATCH_MNT/$seq.test
 
 _create_files()