Whamcloud - gitweb
LU-6076 tests: skip sanity/124a if necessary 22/13222/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Wed, 31 Dec 2014 17:06:32 +0000 (12:06 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 1 Jan 2015 07:03:52 +0000 (07:03 +0000)
If prior tests haven't been run, this test will fail, so safely skip
it.

Test-Parameters: testlist=sanity envdefinitions=ONLY=124a
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I13d7a56b96eda5084627edd8c912782bee20a27c
Reviewed-on: http://review.whamcloud.com/13222
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index 5cd926a..8867c60 100644 (file)
@@ -8202,6 +8202,10 @@ test_124a() {
         local MAX_HRS=10
        local LIMIT=$($LCTL get_param -n $NSDIR.pool.limit)
        log "LIMIT=$LIMIT"
+       if [ $LIMIT -lt $LRU_SIZE ]; then
+           skip "Limit is too small $LIMIT"
+           return 0
+       fi
 
         # Make LVF so higher that sleeping for $SLEEP is enough to _start_
         # killing locks. Some time was spent for creating locks. This means