From 6c7fe304e8ac006fd974bb9fa95e22062e687e4a Mon Sep 17 00:00:00 2001 From: Niu Yawei Date: Mon, 6 Jan 2014 12:44:58 +0800 Subject: [PATCH] LU-4270 test: fix sanity test_209 Fix the connect_flags checking in test_209 of sanity.sh This patch is back-ported from the following one: Lustre-commit: b498499104af17da081f1c22b9c07951104846a3 Lustre-change: http://review.whamcloud.com/8326 Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes,ONLY=209 \ ossjob=lustre-b2_4 mdsjob=lustre-b2_4 ossbuildno=70 mdsbuildno=70 \ testlist=sanity Signed-off-by: Niu Yawei Signed-off-by: Jian Yu Change-Id: I6c34b9dbe6d3b7475d85588e7adb3acb762fab32 Reviewed-on: http://review.whamcloud.com/8729 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index da2c101..613bfba 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -10857,7 +10857,7 @@ test_208() { run_test 208 "Exclusive open" test_209() { - [[ $($LCTL get_param -n mdc.*.connect_flags) == ~disp_stripe ]] && + [ -z "$(lctl get_param -n mdc.*.connect_flags | grep disp_stripe)" ] && skip_env "must have disp_stripe" && return touch $DIR/$tfile -- 1.8.3.1