From: Nathaniel Clark Date: Wed, 31 Dec 2014 17:06:32 +0000 (-0500) Subject: LU-6076 tests: skip sanity/124a if necessary X-Git-Tag: 2.6.92~2 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=cbbd1415c595c271c54fb553533341e9ffc37268 LU-6076 tests: skip sanity/124a if necessary 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 Change-Id: I13d7a56b96eda5084627edd8c912782bee20a27c Reviewed-on: http://review.whamcloud.com/13222 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 5cd926a..8867c60 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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