Whamcloud - gitweb
LU-2693 tests: check Lustre version in conf-sanity test 66
authorJian Yu <jian.yu@intel.com>
Tue, 29 Jan 2013 04:12:59 +0000 (12:12 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Jan 2013 05:18:59 +0000 (00:18 -0500)
Lustre starts supporting the "replace nids" feature
(commit 6aa30ff) since version 2.3.59. We need add
a Lustre version check into conf-sanity test 66 to
make sure the test does not run on unsupported
Lustre version.

Test-Parameters: envdefinitions=SLOW=yes \
serverjob=lustre-b2_1 serverbuildno=164 \
testlist=conf-sanity

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I7eee38664e66059bbc028c3eb7d9741b1351b883
Reviewed-on: http://review.whamcloud.com/5198
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Wei Liu <wei3.liu@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh

index 63c9aaa..0a84732 100644 (file)
@@ -3440,6 +3440,9 @@ test_65() { # LU-2237
 run_test 65 "re-create the lost last_rcvd file when server mount"
 
 test_66() {
+       [[ $(lustre_version_code mgs) -ge $(version_code 2.3.59) ]] ||
+               { skip "Need MGS version at least 2.3.59"; return 0; }
+
        setup
        local OST1_NID=$(do_facet ost1 $LCTL list_nids | head -1)
        local MDS_NID=$(do_facet $SINGLEMDS $LCTL list_nids | head -1)