From: Bob Glossman Date: Wed, 7 Oct 2015 20:09:18 +0000 (-0700) Subject: LU-6920 test: add some slack to jobstats expiry in test_205 X-Git-Tag: 2.7.63~41 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=13e34c1d0e5472759d1350b62fa0663bbcd59fa0;p=fs%2Flustre-release.git LU-6920 test: add some slack to jobstats expiry in test_205 Add a tiny fudge factor to the time allowed for jobstats to expire before checking on them. Signed-off-by: Bob Glossman Change-Id: Iff2c70e2522b0da0e9c2080cadde49b96a9af60a Reviewed-on: http://review.whamcloud.com/16753 Reviewed-by: John L. Hammond Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Minh Diep Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 0ecc031..4c3d5f6 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -11785,7 +11785,7 @@ test_205() { # Job stats cmd="mv -f $DIR/$tfile $DIR/$tdir.rename" verify_jobstats "$cmd" "$SINGLEMDS" # jobstats expiry - sleep until old stats should be expired - local left=$((interval_new - (SECONDS - start))) + local left=$((interval_new + 2 - (SECONDS - start))) [ $left -ge 0 ] && echo "sleep $left for expiry" && sleep $((left + 1)) cmd="mkdir $DIR/$tdir.expire" verify_jobstats "$cmd" "$SINGLEMDS"