Whamcloud - gitweb
LU-10722 test: Add version check to sanity-quota test_55 31/31531/2
authorWei Liu <wei3.liu@intel.com>
Mon, 5 Mar 2018 18:38:43 +0000 (10:38 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Mar 2018 17:57:19 +0000 (17:57 +0000)
Skip sanity-quota test_55 if server is older than 2.10.58

Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Wei Liu <wei3.liu@intel.com>
Change-Id: Ia8a129298d75fb019699adda07fecd2f4d9eb46a
Reviewed-on: https://review.whamcloud.com/31531
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Saurabh Tandan <saurabh.tandan@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-quota.sh

index 431c5d2..239b1b7 100755 (executable)
@@ -2984,6 +2984,8 @@ test_54() {
 run_test 54 "basic lfs project interface test"
 
 test_55() {
 run_test 54 "basic lfs project interface test"
 
 test_55() {
+       [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.10.58) ] &&
+               skip "Not supported before 2.10.58." && return
        setup_quota_test || error "setup quota failed with $?"
 
        set_ost_qtype $QTYPE || error "enable ost quota failed"
        setup_quota_test || error "setup quota failed with $?"
 
        set_ost_qtype $QTYPE || error "enable ost quota failed"