summaryrefslogtreecommitdiffhomepage
path: root/src/tests/netns.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-01-01 12:57:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-01-01 23:30:40 +0100
commit7a0dc69664adcb381e690a373abd7714d95ced1b (patch)
tree411e05d7e25ef32fa93093121a808555d8d8aa5a /src/tests/netns.sh
parente4354e6509da0e0a01de9c3ed5c46d18580c5fde (diff)
qemu: bump packages and support m68k properly
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/tests/netns.sh')
-rwxr-xr-xsrc/tests/netns.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/netns.sh b/src/tests/netns.sh
index e7310d9..4e7f436 100755
--- a/src/tests/netns.sh
+++ b/src/tests/netns.sh
@@ -37,7 +37,7 @@ n2() { pretty 2 "$*"; maybe_exec ip netns exec $netns2 "$@"; }
ip0() { pretty 0 "ip $*"; ip -n $netns0 "$@"; }
ip1() { pretty 1 "ip $*"; ip -n $netns1 "$@"; }
ip2() { pretty 2 "ip $*"; ip -n $netns2 "$@"; }
-sleep() { read -t "$1" -N 0 || true; }
+sleep() { read -t "$1" -N 1 || true; }
waitiperf() { pretty "${1//*-}" "wait for iperf:5201"; while [[ $(ss -N "$1" -tlp 'sport = 5201') != *iperf3* ]]; do sleep 0.1; done; }
waitncatudp() { pretty "${1//*-}" "wait for udp:1111"; while [[ $(ss -N "$1" -ulp 'sport = 1111') != *ncat* ]]; do sleep 0.1; done; }
waitncattcp() { pretty "${1//*-}" "wait for tcp:1111"; while [[ $(ss -N "$1" -tlp 'sport = 1111') != *ncat* ]]; do sleep 0.1; done; }