From 7937e03b1c47f1677656550534bb36da00bb0447 Mon Sep 17 00:00:00 2001 From: Chennaiah Palla Date: Mon, 26 Sep 2016 12:05:41 +0530 Subject: [PATCH] LU-8640 tests: relax time check of sanity-hsm test_16 If the copytool and test script round clock time in a different way, a strict time check would causes failure. Seagate-bug-id: MRP-3436 Signed-off-by: Chennaiah Palla Change-Id: Ie30c4366f5f9c4afab64f6825b907bf04d8419ab Reviewed-on: https://review.whamcloud.com/22725 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Nathaniel Clark Reviewed-by: Andreas Dilger 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 fd4e3e7..f1988cd 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -1731,7 +1731,7 @@ test_16() { # Add 1 to account for rounding errors between start and end (LU-8155) local duration=$((end - start + 1)) - [[ $duration -ge $goal ]] || + [[ $duration -ge $((goal - 1)) ]] || error "Transfer is too fast $duration < $goal" copytool_cleanup -- 1.8.3.1