Whamcloud - gitweb
LU-10940 tests: skip sanity test 802 when quota enabled 00/32900/2
authorJames Nunez <jnunez@whamcloud.com>
Mon, 30 Jul 2018 16:02:17 +0000 (10:02 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 9 Aug 2018 18:20:48 +0000 (18:20 +0000)
If ENABLE_QUOTA is set, sanity test 802 will try to set
the quota type on read-only targets. Setting quota requires
changes to the targets and, thus, does not make sense for
this test. sanity test 802 should be skipped if ENABLE_QUOTA
is set.

Test-Parameters: trivial envdefinitions=ENABLE_QUOTA=yes,ONLY=802 testlist=sanity
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: Ic9c245045961867b7dc93be9268e6f4a4631c1dc
Reviewed-on: https://review.whamcloud.com/32900
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index 6f91721..1b5e165 100755 (executable)
@@ -19132,6 +19132,8 @@ test_802() {
        [[ $(lustre_version_code ost1) -lt $(version_code 2.9.55) ]] &&
                skip "Need server version at least 2.9.55"
 
+       [[ $ENABLE_QUOTA ]] && skip "Quota enabled for read-only test"
+
        mkdir $DIR/$tdir || error "(1) fail to mkdir"
 
        cp $LUSTRE/tests/test-framework.sh $DIR/$tdir/ ||