diff mbox series

[1/5] check: use _try_scratch_mount instead of _scratch_mount to mount SCRATCH_DEV

Message ID 20181229023452.28074-2-houtao1@huawei.com (mailing list archive)
State New, archived
Headers show
Series tiny fixes for xfstests | expand

Commit Message

Hou Tao Dec. 29, 2018, 2:34 a.m. UTC
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>
---
 check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/check b/check
index e85f40ac..e4d76737 100755
--- 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