From 7a3fa849bb96b8fb7faec8e5973e15265938a5c1 Mon Sep 17 00:00:00 2001 From: James Nunez Date: Thu, 25 May 2017 16:46:39 -0600 Subject: [PATCH] LU-9295 test: skip sanity-lfsck 9 less than 2.8 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 Change-Id: I6c461a6940a0cbd0439c8f29d979ef799ea30229 Reviewed-on: https://review.whamcloud.com/26403 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Saurabh Tandan Reviewed-by: Oleg Drokin --- lustre/tests/sanity-lfsck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity-lfsck.sh b/lustre/tests/sanity-lfsck.sh index 8716c6a..99b1c4e 100644 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -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 -- 1.8.3.1