From 792742b78f0afe16c7a23d765601b5a4a0231a9e Mon Sep 17 00:00:00 2001 From: Li Xi Date: Wed, 30 Dec 2015 18:40:40 +0800 Subject: [PATCH] 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 --- lustre/tests/sanity-hsm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.3.1