From: Kirtankumar Krishna Shetty Date: Thu, 21 Apr 2016 08:48:01 +0000 (+0530) Subject: LU-8051 tests: Skipping sanity tests 300[a-d] for old servers. X-Git-Tag: 2.8.53~19 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=d2a310d698df167ccb41c1ae0ac24d4ef9846f45 LU-8051 tests: Skipping sanity tests 300[a-d] for old servers. The tests 300[a-i] were added in version 2.7.0 for the newer version of the code to test striped directory related features and hence the tests 300[a,b,c,d] used to fail for the v2.7.0 and above client with older server versions. Added skip statement for the tests if server is of an older versions. Seagate-bug-id: MRP-3393 Change-Id: I26f271c1a4aa62c8f41c391e0c595f1ccaf18f8b Signed-off-by: Kirtankumar Krishna Shetty Reviewed-on: http://review.whamcloud.com/19698 Tested-by: Jenkins Reviewed-by: Andreas Dilger Reviewed-by: Jian Yu Tested-by: Maloo --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 56519f5..cfe75cc 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -13856,6 +13856,8 @@ test_striped_dir() { } test_300a() { + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.0) ] && + skip "skipped for lustre < 2.7.0" && return [ $PARALLEL == "yes" ] && skip "skip parallel run" && return [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return @@ -13865,6 +13867,8 @@ test_300a() { run_test 300a "basic striped dir sanity test" test_300b() { + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.0) ] && + skip "skipped for lustre < 2.7.0" && return [ $PARALLEL == "yes" ] && skip "skip parallel run" && return [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return local i @@ -13895,6 +13899,8 @@ test_300b() { run_test 300b "check ctime/mtime for striped dir" test_300c() { + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.0) ] && + skip "skipped for lustre < 2.7.0" && return [ $PARALLEL == "yes" ] && skip "skip parallel run" && return [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return local file_count @@ -13918,6 +13924,8 @@ test_300c() { run_test 300c "chown && check ls under striped directory" test_300d() { + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.7.0) ] && + skip "skipped for lustre < 2.7.0" && return [ $PARALLEL == "yes" ] && skip "skip parallel run" && return [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return local stripe_count