Whamcloud - gitweb
LU-9295 test: skip sanity-lfsck 9 less than 2.8 03/26403/5
authorJames Nunez <james.a.nunez@intel.com>
Thu, 25 May 2017 22:46:39 +0000 (16:46 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 17 Aug 2017 01:30:19 +0000 (01:30 +0000)
sanity-lfsck tests 9a and 9b check the version of the MDS
to see if the test should be run. Unfortunately, the
server_version variable is never initialized and the tests
are skipped.

For sanity-lfsck tests 9a and 9b, get the server version
using the lustre_version_code routine.

Test-Parameters: trivial testlist=sanity-lfsck
Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I6c461a6940a0cbd0439c8f29d979ef799ea30229
Reviewed-on: https://review.whamcloud.com/26403
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Saurabh Tandan <saurabh.tandan@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-lfsck.sh

index 8716c6a..99b1c4e 100644 (file)
@@ -1021,7 +1021,7 @@ test_9a() {
                return 0
        fi
 
-       [[ $server_version -ge $(version_code 2.7.50) ]] ||
+       [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.7.50) ]] ||
                { skip "Need MDS version >= 2.7.50"; return; }
 
        check_mount_and_prep
@@ -1095,7 +1095,7 @@ test_9b() {
                return 0
        fi
 
-       [[ $server_version -ge $(version_code 2.7.50) ]] ||
+       [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.7.50) ]] ||
                { skip "Need MDS version >= 2.7.50"; return; }
 
        lfsck_prep 0 0