From: Andreas Gruenbacher Date: Sat, 3 Feb 2018 18:57:37 +0000 (+0100) Subject: generic/270: Check for scratch mount success X-Git-Tag: v2022.05.01~1658 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fe3aefba4d1704e45fe76ffbfacc75413249047f;p=xfstests-dev.git generic/270: Check for scratch mount success We don't want to fill up the scratch mount point if the scratch mount fails. Signed-off-by: Andreas Gruenbacher Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/generic/270 b/tests/generic/270 index f5026ba0..318f532a 100755 --- a/tests/generic/270 +++ b/tests/generic/270 @@ -83,7 +83,7 @@ _require_command "$KILLALL_PROG" killall rm -f $seqres.full _scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1 -_scratch_mount "-o usrquota,grpquota" +_scratch_mount "-o usrquota,grpquota" || _fail "mount failed" chmod 777 $SCRATCH_MNT quotacheck -u -g $SCRATCH_MNT 2>/dev/null quotaon -u -g $SCRATCH_MNT 2>/dev/null