From: Nathan Scott Date: Tue, 18 Apr 2006 03:48:00 +0000 (+0000) Subject: Make test 41 fail if it cannot run mkfs successfully. X-Git-Tag: v1.1.0~653 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c16d3b2281602c5fc4f46509644d5db12c23eb2f;p=xfstests-dev.git Make test 41 fail if it cannot run mkfs successfully. Merge of master-melb:xfs-cmds:25749a by kenmcd. --- diff --git a/041 b/041 index 7375d23e..3eca05e1 100755 --- a/041 +++ b/041 @@ -37,7 +37,7 @@ _supported_os IRIX Linux _require_scratch _require_nobigloopfs - +umount $SCRATCH_DEV 2>/dev/null _fill() { @@ -48,11 +48,12 @@ _fill() _do_die_on_error=message_only rm -f $seq.full -#agsize=16 agsize=32 echo -n "Make $agsize megabyte filesystem on SCRATCH_DEV and mount... " _do "_scratch_mkfs_xfs -dsize=${agsize}m,agcount=1" +[ $? -ne 0 ] && exit _do "_scratch_mount" +[ $? -ne 0 ] && exit echo "done" # full allocation group -> partial; partial -> expand partial + new partial;