mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
check: use _try_scratch_mount instead of _scratch_mount to mount SCRATCH_DEV
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>
This commit is contained in:
@@ -607,7 +607,7 @@ for section in $HOST_OPTIONS_SECTIONS; do
|
|||||||
|
|
||||||
# call the overridden mount - make sure the FS mounts with
|
# call the overridden mount - make sure the FS mounts with
|
||||||
# the same options that we'll mount with later.
|
# 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
|
then
|
||||||
echo "our local mount routine ..."
|
echo "our local mount routine ..."
|
||||||
cat $tmp.err
|
cat $tmp.err
|
||||||
|
|||||||
Reference in New Issue
Block a user