]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
check: use _try_scratch_mount instead of _scratch_mount to mount SCRATCH_DEV
authorHou Tao <houtao1@huawei.com>
Sat, 29 Dec 2018 02:34:48 +0000 (10:34 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 29 Dec 2018 07:50:55 +0000 (15:50 +0800)
Else there won't be any error messages when mounting SCRATCH_DEV
failed, because _scratch_mount exits early by invoking _fail.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
check

diff --git a/check b/check
index e85f40ac352ea4b904167327f79338f42ede9ace..e4d767375b57ba758aa50760b39f75da53a0363a 100755 (executable)
--- a/check
+++ b/check
@@ -607,7 +607,7 @@ for section in $HOST_OPTIONS_SECTIONS; do
 
          # call the overridden mount - make sure the FS mounts with
          # the same options that we'll mount with later.
-         if ! _scratch_mount >$tmp.err 2>&1
+         if ! _try_scratch_mount >$tmp.err 2>&1
          then
              echo "our local mount routine ..."
              cat $tmp.err