From: Emoly Liu Date: Wed, 9 Nov 2016 06:12:28 +0000 (+0800) Subject: LU-8793 tests: add version check to conf-sanity.sh test_99 X-Git-Tag: 2.9.51~32 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b0d1be42118274d608ed171855de9c00a30c0d22;p=fs%2Flustre-release.git LU-8793 tests: add version check to conf-sanity.sh test_99 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 Change-Id: I379388427c7824c21e5c1f65ec8e362ca1b7905c Reviewed-on: https://review.whamcloud.com/23668 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 89f57cf..95b7892 100755 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -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)"