Whamcloud - gitweb
LU-8793 tests: add version check to conf-sanity.sh test_99 68/23668/2
authorEmoly Liu <emoly.liu@intel.com>
Wed, 9 Nov 2016 06:12:28 +0000 (14:12 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:43:20 +0000 (05:43 +0000)
This patch adds Lustre version check codes into conf-sanity.sh
test_99 to make the test interoperate with servers that do not
have the following change:

Lustre-commit: 310fd9ced4e60d83d4f93ebf45f05654eff408cb
Lustre-change: http://review.whamcloud.com/21545

Test-Parameters: trivial testlist=conf-sanity
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I379388427c7824c21e5c1f65ec8e362ca1b7905c
Reviewed-on: https://review.whamcloud.com/23668
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/conf-sanity.sh

index 89f57cf..95b7892 100755 (executable)
@@ -6958,6 +6958,8 @@ test_99()
 {
        [[ $(facet_fstype ost1) != ldiskfs ]] &&
                { skip "Only applicable to ldiskfs-based OSTs" && return; }
+       [[ $(lustre_version_code ost1) -ge $(version_code 2.8.57) ]] ||
+               { skip "Need OST version at least 2.8.57" && return 0; }
 
        local ost_opts="$(mkfs_opts ost1 $(ostdevname 1)) \
                --reformat $(ostdevname 1) $(ostvdevname 1)"