From 74bcf51c066e498a147ab5902e377efa59224dd3 Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Tue, 9 Jul 2013 15:07:27 -0400 Subject: [PATCH] xfstests: exit out if _scratch_mount fails I test some of the different mkfs options for btrfs, one set doesn't work properly with small file systems, so the fs won't mount. This is fine from a btrfs point of view, but tests that fail to mount the scratch fs will run anyway, so if it's a "fill the fs" sort of test this will wreak havoc. To fix this just error out of _scratch_mount fails. Thanks, Signed-off-by: Josef Bacik Reviewed-by: Ben Myers Signed-off-by: Ben Myers --- common/rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/rc b/common/rc index fe6bbfcb..5cb1fe22 100644 --- a/common/rc +++ b/common/rc @@ -276,6 +276,10 @@ _scratch_mount_options() _scratch_mount() { _mount -t $FSTYP `_scratch_mount_options $*` + if [ $? -ne 0 ]; then + echo "mount failed" + exit 1 + fi } _scratch_unmount() -- 2.39.5