From: Chennaiah Palla Date: Mon, 26 Sep 2016 06:35:41 +0000 (+0530) Subject: LU-8640 tests: relax time check of sanity-hsm test_16 X-Git-Tag: 2.9.51~54 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=7937e03b1c47f1677656550534bb36da00bb0447 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 --- 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