From ed71af843d5b1f35440f9490021eeb2deff80d7c Mon Sep 17 00:00:00 2001 From: Arshad Hussain Date: Mon, 31 Oct 2022 19:31:32 +0530 Subject: [PATCH] LU-16280 tests: conf-sanity/117 call setup when FS is not mounted conf-sanity/117 calls setup() funciton to setup LustreFS regardless of the previous state of conf-sanity. Currently test before conf-sanity/117 leaves state of conf-sanity as not mounted. However, this make test case highly depenending on previous state. Specially if tests are unrelated. This patch checks the state of LustreFS before calling setup. Test-Parameters: trivial fstype=zfs testlist=conf-sanity env=ONLY="112 115 116 117" Signed-off-by: Arshad Hussain Change-Id: I40c2b91f9cf5138f0f3c377fd222d092b37d1c12 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48989 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- lustre/tests/conf-sanity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 5fd625e..b05cbc6 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -9210,7 +9210,9 @@ test_116() { run_test 116 "big size MDT support" test_117() { - setup + # Call setup only if LustreFS is not mounted + check_mount || setup + do_facet ost1 "$LCTL set_param ost.OSS.ost_io.nrs_policies=fifo" do_facet ost1 "$LCTL get_param -n ost.OSS.ost_io.nrs_tbf_rule" && error "get_param should fail" -- 1.8.3.1