scripts: net: Return final return value from Docker test
Return the final return value from Docker script when running echo client in the container, first for UDP and then TCP, for both IPv4 and IPv6. Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
8f451b7338
commit
ad1b38bebe
1 changed files with 10 additions and 2 deletions
|
@ -253,10 +253,16 @@ stop_docker ()
|
||||||
|
|
||||||
wait_docker ()
|
wait_docker ()
|
||||||
{
|
{
|
||||||
echo "Waiting for Docker $docker_pid..."
|
local result=""
|
||||||
|
|
||||||
|
echo "Waiting for Docker PID $docker_pid..."
|
||||||
wait $docker_pid
|
wait $docker_pid
|
||||||
|
result=$?
|
||||||
|
|
||||||
docker_pid=0
|
docker_pid=0
|
||||||
|
|
||||||
|
echo "Docker returned '$result'"
|
||||||
|
return $result
|
||||||
}
|
}
|
||||||
|
|
||||||
docker_exec ()
|
docker_exec ()
|
||||||
|
@ -276,7 +282,9 @@ docker_exec ()
|
||||||
|
|
||||||
start_docker \
|
start_docker \
|
||||||
"/net-tools/echo-client -i eth0 192.0.2.1" \
|
"/net-tools/echo-client -i eth0 192.0.2.1" \
|
||||||
"/net-tools/echo-client -i eth0 2001:db8::1"
|
"/net-tools/echo-client -i eth0 2001:db8::1" \
|
||||||
|
"/net-tools/echo-client -i eth0 192.0.2.1 -t" \
|
||||||
|
"/net-tools/echo-client -i eth0 2001:db8::1 -t"
|
||||||
|
|
||||||
wait_docker
|
wait_docker
|
||||||
result=$?
|
result=$?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue