Whamcloud - gitweb
LU-4270 test: fix sanity test_209 26/8326/2
authorNiu Yawei <yawei.niu@intel.com>
Tue, 19 Nov 2013 06:56:10 +0000 (01:56 -0500)
committerAndreas Dilger <andreas.dilger@intel.com>
Thu, 28 Nov 2013 22:46:53 +0000 (22:46 +0000)
Fix the  connect_flags checking in test_209 of sanity.sh

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I6c34b9dbe6d3b7475d85588e7adb3acb762fab32
Reviewed-on: http://review.whamcloud.com/8326
Tested-by: Jenkins
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh

index 5a4cf98..3763529 100644 (file)
@@ -10945,7 +10945,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