From: Li Xi Date: Wed, 30 Dec 2015 10:40:40 +0000 (+0800) Subject: LU-7229 hsm: relax time check of sanity-hsm test_60 X-Git-Tag: 2.7.90~33 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=792742b78f0afe16c7a23d765601b5a4a0231a9e LU-7229 hsm: relax time check of sanity-hsm test_60 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 Change-Id: I97ebe02d6a0cdd9425ef68e5770e63ac9968ebaa Reviewed-on: http://review.whamcloud.com/17742 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index c9704e7..f73a502 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -3162,7 +3162,7 @@ test_60() { 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