From 2e6b782386403e5498cdcabfa5307d03f4a72459 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Fri, 11 Aug 2023 13:11:01 -0700 Subject: [PATCH] LU-16831 tests: add version check to sanity-pfl/0e This patch adds MDS version check to sanity-pfl test 0e to avoid interop test failure. Lustre-change: https://review.whamcloud.com/51930 Lustre-commit: TBD (from 5c10bd215ac0c0ce8351795215067071387bfc5b) Test-Parameters: trivial serverdistro=el7.9 \ serverjob=lustre-b_es5_2 serverbuildno=583 \ env=ONLY=0e testlist=sanity-pfl Test-Parameters: trivial env=ONLY=0e testlist=sanity-pfl Fixes: a337688d6e89 ("LU-16831 lfs: limit stripe count for component size") Change-Id: I79df1f36f07f6b376525364708eacc687f85a061 Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51931 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/sanity-pfl.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/sanity-pfl.sh b/lustre/tests/sanity-pfl.sh index 9f6f9ab..8147ce7 100644 --- a/lustre/tests/sanity-pfl.sh +++ b/lustre/tests/sanity-pfl.sh @@ -191,6 +191,9 @@ test_0d() { run_test 0d "Verify comp end and stripe size" test_0e() { + (( $MDS1_VERSION >= $(version_code 2.14.0-ddn94) )) || + skip "Need MDS version at least 2.14.0-ddn94" + (( OSTCOUNT >= 2 )) || skip "needs >= 2 OSTs" local td=$DIR/$tdir -- 1.8.3.1