diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-21 04:51:39 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-21 04:51:39 +0200 |
commit | 1f3d6f96b5bb1ec59fed27d4048166187fc62d41 (patch) | |
tree | 80a982c07120e15decc9e356e68f46f1b29d8570 /test/lib | |
parent | 27f599967793353deae8bd6dd136a6ddb1597f62 (diff) | |
download | passt-1f3d6f96b5bb1ec59fed27d4048166187fc62d41.tar passt-1f3d6f96b5bb1ec59fed27d4048166187fc62d41.tar.gz passt-1f3d6f96b5bb1ec59fed27d4048166187fc62d41.tar.bz2 passt-1f3d6f96b5bb1ec59fed27d4048166187fc62d41.tar.lz passt-1f3d6f96b5bb1ec59fed27d4048166187fc62d41.tar.xz passt-1f3d6f96b5bb1ec59fed27d4048166187fc62d41.tar.zst passt-1f3d6f96b5bb1ec59fed27d4048166187fc62d41.zip |
test/lib/test: Wait a bit longer before terminating iperf3 processes
Sometimes tests run a few seconds longer than expected, wait a few
more seconds.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib')
-rwxr-xr-x | test/lib/test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/test b/test/lib/test index 2e3f4ba..682e0c7 100755 --- a/test/lib/test +++ b/test/lib/test @@ -43,7 +43,7 @@ test_iperf3() { pane_run "${__pane}" 'for i in $(seq 0 '${__procs}');' \ 'do ( iperf3 -c '"${__dest}"' -p '"${__port}" \ "${@}" ' -T s${i} & echo $! > c${i}.pid & ); done' - sleep 36 + sleep 40 pane_run "${__pane}" 'for i in $(seq 0 '${__procs}'); do'\ 'kill -INT $(cat c${i}.pid) 2>/dev/null; done' ) & @@ -71,10 +71,10 @@ test_iperf3() { fi pane_wait "${__pane}" - sleep 38 + sleep 45 pane_run "${__pane}" 'for i in $(seq 0 '${__procs}'); do' \ 'kill -INT $(cat s${i}.pid) 2>/dev/null; done' - sleep 1 + sleep 4 pane_wait "${__pane}" pane_run "${__pane}" '(cat s*.bw |' \ 'sed '"'"'s/\(.*\)/\1\+/g'"'"' |' \ |