Whamcloud - gitweb
EX-5798 tests: add a version check to conf-sanity.sh test_133
authorEmoly Liu <emoly@whamcloud.com>
Fri, 9 Sep 2022 10:18:24 +0000 (18:18 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Sep 2022 16:35:16 +0000 (16:35 +0000)
The patch at https://review.whamcloud.com/47334 has been ported
to b_es6_0 since 2.14.0-ddn46, a version check is added to
conf-sanity.sh test_133 to avoid interop failure.

Test-Parameters: trivial testlist=conf-sanity serverversion=2.14.0-ddn23

Change-Id: I4bfc2986abddfd3a5a606f5586a29311582fca42
Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/48501
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sarah Liu <sarah@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/conf-sanity.sh

index 488c763..12e2069 100644 (file)
@@ -9342,6 +9342,8 @@ run_test 131 "MDT backup restore with project ID"
 # significant imbalance vs an OST outside the pool
 test_133() {
        [[ $OSTCOUNT -lt 4 ]] && skip_env "needs >= 4 OSTs"
+       [[ "$OST1_VERSION" -ge $(version_code 2.14.0-ddn46) ]] ||
+               skip "Need OST version at least 2.14.0-ddn46"
        # This is the easiest way to ensure OSTs start out balanced
        reformat_and_config
        setupall