Whamcloud - gitweb
LU-6037 test: skip s-q 37 for old server 48/17648/2
authorNiu Yawei <yawei.niu@intel.com>
Thu, 17 Dec 2015 02:47:38 +0000 (21:47 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 25 Jan 2016 01:58:21 +0000 (01:58 +0000)
Old server (prior 2.6.93) doesn't have fix of LU-5006, the s-q 37
test should be skipped in interoperability testing.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Ic794c3dead462f27fde9ab4b9dfcd2fd1d68db69
Reviewed-on: http://review.whamcloud.com/17648
Tested-by: Jenkins
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-quota.sh

index bd057dc..5b175f2 100644 (file)
@@ -2301,6 +2301,9 @@ run_test 35 "Usage is still accessible across reboot"
 # chown/chgrp to the file created with MDS_OPEN_DELAY_CREATE
 # LU-5006
 test_37() {
 # chown/chgrp to the file created with MDS_OPEN_DELAY_CREATE
 # LU-5006
 test_37() {
+       [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.6.93) ] &&
+               skip "Old server doesn't have LU-5006 fix." && return
+
        setup_quota_test || error "setup quota failed with $?"
        trap cleanup_quota_test EXIT
 
        setup_quota_test || error "setup quota failed with $?"
        trap cleanup_quota_test EXIT