Whamcloud - gitweb
LU-5142 test: add version check to conf-sainty.sh test_43 75/10675/2
authorEmoly Liu <emoly.liu@intel.com>
Fri, 6 Jun 2014 14:45:00 +0000 (22:45 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 16 Jun 2014 03:50:39 +0000 (03:50 +0000)
This patch adds Lustre version check codes into conf-sanity
test_43 to make the test work with servers which do not have
the following patches:

Lustre-commit: 3064318df90ce7019b83c8a7f80e93a9634c00fa
Lustre-change: http://review.whamcloud.com/5700
Lustre-commit: 917b0a17d4e50db9f966763925a2dc860d932a3b
Lustre-change: http://review.whamcloud.com/9221

Test-Parameters: envdefinitions=SLOW=yes,ONLY=43 testlist=conf-sanity ossjob=lustre-b2_5 mdsjob=lustre-b2_5 ossbuildno=61 mdsbuildno=61
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I9fad8d7002eb29b3da89213a6afc3c88de611b8f
Reviewed-on: http://review.whamcloud.com/10675
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
lustre/tests/conf-sanity.sh

index 3862b8f..6446ac6 100644 (file)
@@ -2577,6 +2577,8 @@ test_42() { #bug 14693
 run_test 42 "allow client/server mount/unmount with invalid config param"
 
 test_43() {
+       [[ $(lustre_version_code mgs) -ge $(version_code 2.5.58) ]] ||
+               { skip "Need MDS version at least 2.5.58" && return 0; }
        [ $UID -ne 0 -o $RUNAS_ID -eq 0 ] && skip_env "run as root"
 
        ID1=${ID1:-501}