Whamcloud - gitweb
LU-4270 test: fix sanity test_209 29/8729/3
authorNiu Yawei <yawei.niu@intel.com>
Mon, 6 Jan 2014 04:44:58 +0000 (12:44 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 11 Jan 2014 05:47:42 +0000 (05:47 +0000)
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 <yawei.niu@intel.com>
Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I6c34b9dbe6d3b7475d85588e7adb3acb762fab32
Reviewed-on: http://review.whamcloud.com/8729
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index da2c101..613bfba 100644 (file)
@@ -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