Whamcloud - gitweb
LU-14323 tests: skip sanity-flr/pfl tests for older servers 94/44494/5
authorJames Nunez <jnunez@whamcloud.com>
Wed, 4 Aug 2021 14:47:50 +0000 (08:47 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 17 Sep 2021 14:08:13 +0000 (14:08 +0000)
sanity-flr test 46 sub tests 7, 8, 9 and 10 and sanity-pfl
test 16c were added to lustre-master version 2.13.53.205.
When we run version interop testing, these sanity-flr and
sanity-pfl tests will fail.  Thus skip sanity-flr test 46
subtests 7, 8, 9, and 10 and sanity-pfl test 16c when run
with servers with version less than 2.13.53.205 and clients
with later version.

Fixes: ee916af10de2 (“LU-13366 utils: SEL yaml and copy file support “)
Test-Parameters: trivial
Test-Parameters: env=ONLY=46 testlist=sanity-flr
Test-Parameters: env=ONLY=16 testlist=sanity-pfl
Test-Parameters: serverversion=2.12.7 serverdistro=el7.9 env=ONLY=46 testlist=sanity-flr
Test-Parameters: serverversion=2.12.7 serverdistro=el7.9 env=ONLY=16 testlist=sanity-pfl
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I09b88351a10891f63dceb9a2a74c92e4fffc13c5
Reviewed-on: https://review.whamcloud.com/44494
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
lustre/tests/sanity-flr.sh
lustre/tests/sanity-pfl.sh

index c00b2e7..cff383e 100644 (file)
@@ -2207,6 +2207,10 @@ test_46() {
 
        verify_46 $dir $dir.copy "6. FLR dir"
 
+       (( $MDS1_VERSION >= $(version_code 2.13.53.205) )) ||
+               echo "server version $MDS1_VERSION does not support SEL" &&
+               return 0
+
        ########################### 7. SEL file ##############################
        echo "  ** 7. SEL file"
        rm -f $file
index 5b64432..4a6921a 100644 (file)
@@ -987,6 +987,9 @@ test_16b() {
 run_test 16b "Verify setstripe/getstripe with YAML config file + overstriping"
 
 test_16c() {
+       (( $MDS1_VERSION >= $(version_code 2.13.53.205) )) ||
+               skip "need MDS version at least 2.13.53.205"
+
        [ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs"
 
        local file=$DIR/$tdir/$tfile