test/TEST-40-NBD/test.sh: bail out early if mount fails

master
Harald Hoyer 2020-02-27 15:26:44 +01:00
parent 63b67a48f9
commit 0d33ba030b
1 changed files with 4 additions and 1 deletions

View File

@ -288,7 +288,10 @@ make_client_root() {
dd if=/dev/null of=$TESTDIR/nbd.ext2 bs=1M seek=120
mke2fs -F -j $TESTDIR/nbd.ext2
mkdir $TESTDIR/mnt
mount -o loop $TESTDIR/nbd.ext2 $TESTDIR/mnt
if ! mount -o loop $TESTDIR/nbd.ext2 $TESTDIR/mnt; then
echo "Cannot mount loop"
return 1
fi

kernel=$KVERSION
(