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 <chennaiah.palla@seagate.com>
Change-Id: Ie30c4366f5f9c4afab64f6825b907bf04d8419ab
Reviewed-on: https://review.whamcloud.com/22725
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
# 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