Whamcloud - gitweb
LU-7229 hsm: relax time check of sanity-hsm test_60 42/17742/3
authorLi Xi <lixi@ddn.com>
Wed, 30 Dec 2015 10:40:40 +0000 (18:40 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 2 Feb 2016 04:31:07 +0000 (04:31 +0000)
If the copytool and test script round clock time in a different
way, a strict time check would causes failure.

Signed-off-by: Li Xi <lixi@ddn.com>
Change-Id: I97ebe02d6a0cdd9425ef68e5770e63ac9968ebaa
Reviewed-on: http://review.whamcloud.com/17742
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh

index c9704e7..f73a502 100755 (executable)
@@ -3162,7 +3162,7 @@ test_60() {
        local elapsed=$((finish_at - start_at))
 
        # Ensure that the progress update occurred within the expected window.
        local elapsed=$((finish_at - start_at))
 
        # Ensure that the progress update occurred within the expected window.
-       if [ $elapsed -lt $interval ]; then
+       if [ $elapsed -lt $((interval - 1)) ]; then
                error "Expected progress update after at least $interval seconds"
        fi
 
                error "Expected progress update after at least $interval seconds"
        fi