summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2018-10-29 13:33:04 +0200
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2018-10-29 13:59:39 +0200
commitf31a38160d13fca26cf12472971bc40a607ae2b1 (patch)
tree4bb19ec2b5a8131c8dc555f949fb97ace52e123a
parent7010868847b8762f053024506cad5817078c5ba3 (diff)
downloadlava-sessions-f31a38160d13fca26cf12472971bc40a607ae2b1.tar.gz
fix server ip on iperf client scripts
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rwxr-xr-xscripts/run-iperf-udp-client.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/run-iperf-udp-client.sh b/scripts/run-iperf-udp-client.sh
index 5c78a3e..403078d 100755
--- a/scripts/run-iperf-udp-client.sh
+++ b/scripts/run-iperf-udp-client.sh
@@ -1,5 +1,8 @@
#!/bin/bash
lava-wait iperf3-server-ready
-server_ip=$(cat /tmp/lava_multi_node_cache.txt | grep iperf_ip | cut -d = -f 2)
-iperf -c "$server_ip" &
+server_ip=$(cat /tmp/lava_multi_node_cache.txt | \
+ awk -F'/' '/iperf_ip/ {print $1}' | \
+ awk -F = '{print $2}')
+
+iperf3 -c "$server_ip" &