]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/065: make sure SCRATCH_DEV is unmount before mkfs
authorZorro Lang <zlang@redhat.com>
Wed, 27 Mar 2019 07:45:09 +0000 (15:45 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 31 Mar 2019 15:33:44 +0000 (23:33 +0800)
Commit "8309b39a fstests: fix broken _require_scratch usage" did
below change on xfs/065:

  -_scratch_unmount 2>/dev/null
  +_scratch_mkfs_xfs >> $seqres.full

It cause xfs/065 always fails now, as:
  QA output created by 065
  mkfs.xfs: /dev/sdb2 contains a mounted filesystem
  ...

So use _require_scratch, to make sure the SCRATCH_DEV is unmounted
before mkfs.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/065

index c0d1ee93ffaa2654bf56bc2758df3d9f4ff38963..f09bd9473557f61633d37d08413445c4fbd14320 100755 (executable)
@@ -50,6 +50,7 @@ _list_dir()
 # real QA test starts here
 _supported_fs xfs
 _supported_os Linux
+_require_scratch
 
 #
 # too much hassle to get output matching with quotas turned on