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>
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