Whamcloud - gitweb
LU-1561 tests: Fix ALWAYS_EXCEPT in mds-survey.sh
authorLi Wei <liwei@whamcloud.com>
Mon, 25 Jun 2012 13:24:53 +0000 (21:24 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 29 Jun 2012 03:41:25 +0000 (23:41 -0400)
Modifying the ALWAYS_EXCEPT assignment in mds-survey.sh does not take
effect, because the test filters have already been built.  This patch
moves the build_test_filter() call below the ALWAYS_EXCEPT assignment.
Also moved downward is the check_and_setup_lustre() call, which
usually goes after environment checks.

Test-Parameters: testlist=mds-survey
Change-Id: I547310e4fccfaaa4fbe7010e14baefa2ab9bbdd4
Signed-off-by: Li Wei <liwei@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/3183
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/mds-survey.sh

index 26987c2..c75e359 100644 (file)
@@ -8,9 +8,6 @@ init_test_env $@
 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
 init_logging
 
-build_test_filter
-check_and_setup_lustre
-
 file_count=${file_count:-150000}
 dir_count=${dir_count:-4}
 thrhi=${thrhi:-8}
@@ -26,6 +23,9 @@ if [ -z ${MDSSURVEY} ]; then
     skip_env "mds-survey not found" && exit
 fi
 
+build_test_filter
+check_and_setup_lustre
+
 adjust_inode() {
     local require_inode=0
     local avail_mdt_inode=0