Whamcloud - gitweb
LU-6920 test: add some slack to jobstats expiry in test_205 53/16753/8
authorBob Glossman <bob.glossman@intel.com>
Wed, 7 Oct 2015 20:09:18 +0000 (13:09 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 28 Oct 2015 13:51:00 +0000 (13:51 +0000)
Add a tiny fudge factor to the time allowed for jobstats
to expire before checking on them.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: Iff2c70e2522b0da0e9c2080cadde49b96a9af60a
Reviewed-on: http://review.whamcloud.com/16753
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index 0ecc031..4c3d5f6 100755 (executable)
@@ -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"