Commit 051b0b38 authored by Rohit Gupta's avatar Rohit Gupta

Gitlab CI: minor fix for iperf logging

parent dc18dabe
...@@ -82,13 +82,13 @@ if valid_ip $iface; then ...@@ -82,13 +82,13 @@ if valid_ip $iface; then
while [ "$?" != "0" ]; do while [ "$?" != "0" ]; do
ping -c 1 $iface >& /dev/null ping -c 1 $iface >& /dev/null
done done
echo "$iface connectivity achieved at `date`" echo "$iface connectivity achieved at `date`, Seconds = $SECONDS"
else else
echo "Waiting for Interface $iface to come up..." echo "Waiting for Interface $iface to come up..."
while true; do var=`ifconfig $iface` ;sleep 1; if [ "$var" != "" ]; then break; fi ; done while true; do var=`ifconfig $iface` ;sleep 1; if [ "$var" != "" ]; then break; fi ; done
echo "$iface is now available at `date`" echo "$iface is now available at `date` , Seconds = $SECONDS"
fi fi
...@@ -102,5 +102,5 @@ fi ...@@ -102,5 +102,5 @@ fi
echo "Sleeping for additional $timeout seconds" echo "Sleeping for additional $timeout seconds"
sleep $timeout sleep $timeout
echo "Starting iperf at `date`...." echo "Starting iperf at `date` , Seconds = $SECONDS ...."
iperf ${iperf_args[@]} iperf ${iperf_args[@]}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment