From: Matthew Wilcox Date: Mon, 19 Oct 2020 12:58:39 +0000 (+0100) Subject: generic/127: to exit if any subtest fails X-Git-Tag: v2022.05.01~638 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=2f65e8db375e2b20fc6f7ea719111bd6a94766f5 generic/127: to exit if any subtest fails If one of the subtests of generic/127 fails, we proceed with the rest of the tests, potentially overwriting useful data. This makes it stop as soon as any of the subtests fails. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- diff --git a/tests/generic/127 b/tests/generic/127 index 07f2323d..de8cc1ab 100755 --- a/tests/generic/127 +++ b/tests/generic/127 @@ -89,16 +89,16 @@ _fsx_std_mmap() _supported_fs generic _require_test -_fsx_lite_nommap -_fsx_lite_mmap +_fsx_lite_nommap || exit +_fsx_lite_mmap || exit -_fsx_std_nommap -_fsx_std_mmap +_fsx_std_nommap || exit +_fsx_std_mmap || exit #flush cache after write FSX_ARGS="-f $FSX_ARGS" -_fsx_std_nommap -_fsx_std_mmap +_fsx_std_nommap || exit +_fsx_std_mmap || exit status=0 _cleanup