diff options
| author | PMR <pmr@pmr-lander> | 2018-08-13 22:45:56 +0000 |
|---|---|---|
| committer | PMR <pmr@pmr-lander> | 2018-08-13 22:45:56 +0000 |
| commit | 87b0140a614e550d826a8133794f9818ac24a35d (patch) | |
| tree | 4db03737b12e74b77bb13a163cce5a6096933ee3 | |
| parent | 636a7641df9ab7b6e687b2be370d9dd305ed42fa (diff) | |
| parent | 1ef74bea887ad28bfab91aebb2c86e4570b27b61 (diff) | |
Merge #352936 from ~kissiel/plainbox-provider-checkbox:fix-1251012-weak-timeout-in-network
| -rwxr-xr-x | bin/network | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/network b/bin/network index 72df643..5e02690 100755 --- a/bin/network +++ b/bin/network @@ -112,7 +112,7 @@ class IPerfPerformanceTest(object): # time without timeout to catch devices that slow down, and also # not prematurely end iperf on low-bandwidth devices. self.timeout = 1080*int(self.data_size) - cmd = "timeout {} {} -c {} -n {}G -i 1 -f -m -P {}".format( + cmd = "timeout -k 1 {} {} -c {} -n {}G -i 1 -f -m -P {}".format( self.timeout, self.executable, self.target, self.data_size, threads) @@ -208,9 +208,9 @@ class StressPerformanceTest: def run(self): if self.iperf3: - iperf_cmd = 'timeout 320 iperf3 -c {} -t 300'.format(self.target) + iperf_cmd = 'timeout -k 1 320 iperf3 -c {} -t 300'.format(self.target) else: - iperf_cmd = 'timeout 320 iperf -c {} -t 300'.format(self.target) + iperf_cmd = 'timeout -k 1 320 iperf -c {} -t 300'.format(self.target) print("Running iperf...") iperf = subprocess.Popen(shlex.split(iperf_cmd)) |
