Whamcloud - gitweb
LU-16831 tests: add version check to sanity-pfl/0e 30/51930/2
authorJian Yu <yujian@whamcloud.com>
Fri, 11 Aug 2023 19:58:27 +0000 (12:58 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 24 Aug 2023 04:36:09 +0000 (04:36 +0000)
This patch adds MDS version check to sanity-pfl test 0e
to avoid interop test failure.

Test-Parameters: trivial \
serverjob=lustre-b2_15 serverbuildno=67 \
env=ONLY=0e testlist=sanity-pfl

Test-Parameters: trivial env=ONLY=0e testlist=sanity-pfl

Change-Id: I79df1f36f07f6b376525364708eacc687f85a061
Fixes: a250ecb959a9 ("LU-16831 lfs: limit stripe count for component size")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51930
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-pfl.sh

index e52a2bc..3c90d1c 100644 (file)
@@ -195,6 +195,9 @@ test_0d() {
 run_test 0d "Verify comp end and stripe size"
 
 test_0e() {
+       (( $MDS1_VERSION >= $(version_code 2.15.56.112) )) ||
+               skip "Need MDS version at least 2.15.56.112"
+
        (( OSTCOUNT >= 2 )) || skip "needs >= 2 OSTs"
 
        local td=$DIR/$tdir