generic/402: Drop useless fail message
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Mon, 19 Oct 2020 03:01:59 +0000 (11:01 +0800)
committerEryu Guan <guaneryu@gmail.com>
Tue, 20 Oct 2020 05:35:29 +0000 (13:35 +0800)
Here won't be "scratch mount failed" messages when mounting SCRATCH_DEV
failed, because _scratch_mount exits early by invoking the following_fail.

_scratch_mount
{
        _try_scratch_mount $* || _fail "mount failed"
}

The message is useless and redundant. So drop it.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/402

index 7fc81864d7eb4ba87643fc8d7733639e4c32907e..ddaadf6d7b91f8146cddc76f5aa7e77dba3bd3d3 100755 (executable)
@@ -102,7 +102,7 @@ run_test()
 }
 
 _scratch_mkfs &>> $seqres.full 2>&1 || _fail "mkfs failed"
-_scratch_mount || _fail "scratch mount failed"
+_scratch_mount
 
 _require_timestamp_range $SCRATCH_DEV