Whamcloud - gitweb
LU-8640 tests: relax time check of sanity-hsm test_16 25/22725/2
authorChennaiah Palla <chennaiah.palla@seagate.com>
Mon, 26 Sep 2016 06:35:41 +0000 (12:05 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:38:23 +0000 (05:38 +0000)
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>
lustre/tests/sanity-hsm.sh

index fd4e3e7..f1988cd 100755 (executable)
@@ -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