Whamcloud - gitweb
LU-8051 tests: Skipping sanity tests 300[a-d] for old servers. 98/19698/3
authorKirtankumar Krishna Shetty <kirtan.shetty@seagate.com>
Thu, 21 Apr 2016 08:48:01 +0000 (14:18 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 2 May 2016 23:59:39 +0000 (23:59 +0000)
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 <kirtan.shetty@seagate.com>
Reviewed-on: http://review.whamcloud.com/19698
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/sanity.sh

index 56519f5..cfe75cc 100644 (file)
@@ -13856,6 +13856,8 @@ test_striped_dir() {
 }
 
 test_300a() {
 }
 
 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
 
        [ $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() {
 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
        [ $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() {
 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
        [ $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() {
 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
        [ $PARALLEL == "yes" ] && skip "skip parallel run" && return
        [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
        local stripe_count