Module Name: src Committed By: ozaki-r Date: Wed Dec 21 02:46:08 UTC 2016
Modified Files: src/tests/net/route: t_flags.sh t_flags6.sh t_route.sh Log Message: Add ifconfig -w to improve test stability To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/tests/net/route/t_flags.sh cvs rdiff -u -r1.11 -r1.12 src/tests/net/route/t_flags6.sh cvs rdiff -u -r1.9 -r1.10 src/tests/net/route/t_route.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/net/route/t_flags.sh diff -u src/tests/net/route/t_flags.sh:1.14 src/tests/net/route/t_flags.sh:1.15 --- src/tests/net/route/t_flags.sh:1.14 Fri Nov 25 08:51:17 2016 +++ src/tests/net/route/t_flags.sh Wed Dec 21 02:46:08 2016 @@ -1,4 +1,4 @@ -# $NetBSD: t_flags.sh,v 1.14 2016/11/25 08:51:17 ozaki-r Exp $ +# $NetBSD: t_flags.sh,v 1.15 2016/12/21 02:46:08 ozaki-r Exp $ # # Copyright (c) 2015 The NetBSD Foundation, Inc. # All rights reserved. @@ -42,6 +42,7 @@ setup_local() export RUMP_SERVER=$SOCK_LOCAL atf_check -s exit:0 -o ignore rump.ifconfig shmif0 10.0.0.2/24 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up + atf_check -s exit:0 -o ignore rump.ifconfig -w 10 $DEBUG && rump.ifconfig $DEBUG && rump.netstat -rn -f inet @@ -56,6 +57,7 @@ setup_peer() export RUMP_SERVER=$SOCK_PEER atf_check -s exit:0 -o ignore rump.ifconfig shmif0 10.0.0.1/24 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up + atf_check -s exit:0 -o ignore rump.ifconfig -w 10 $DEBUG && rump.ifconfig $DEBUG && rump.netstat -rn -f inet Index: src/tests/net/route/t_flags6.sh diff -u src/tests/net/route/t_flags6.sh:1.11 src/tests/net/route/t_flags6.sh:1.12 --- src/tests/net/route/t_flags6.sh:1.11 Fri Nov 25 08:51:17 2016 +++ src/tests/net/route/t_flags6.sh Wed Dec 21 02:46:08 2016 @@ -1,4 +1,4 @@ -# $NetBSD: t_flags6.sh,v 1.11 2016/11/25 08:51:17 ozaki-r Exp $ +# $NetBSD: t_flags6.sh,v 1.12 2016/12/21 02:46:08 ozaki-r Exp $ # # Copyright (c) 2016 Internet Initiative Japan Inc. # All rights reserved. @@ -45,6 +45,7 @@ setup_local() export RUMP_SERVER=$SOCK_LOCAL atf_check -s exit:0 -o ignore rump.ifconfig shmif0 inet6 $IP6_LOCAL atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up + atf_check -s exit:0 -o ignore rump.ifconfig -w 10 $DEBUG && rump.ifconfig $DEBUG && rump.netstat -rn -f inet6 @@ -59,6 +60,7 @@ setup_peer() export RUMP_SERVER=$SOCK_PEER atf_check -s exit:0 -o ignore rump.ifconfig shmif0 inet6 $IP6_PEER atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up + atf_check -s exit:0 -o ignore rump.ifconfig -w 10 $DEBUG && rump.ifconfig $DEBUG && rump.netstat -rn -f inet6 Index: src/tests/net/route/t_route.sh diff -u src/tests/net/route/t_route.sh:1.9 src/tests/net/route/t_route.sh:1.10 --- src/tests/net/route/t_route.sh:1.9 Fri Nov 25 08:51:17 2016 +++ src/tests/net/route/t_route.sh Wed Dec 21 02:46:08 2016 @@ -1,4 +1,4 @@ -# $NetBSD: t_route.sh,v 1.9 2016/11/25 08:51:17 ozaki-r Exp $ +# $NetBSD: t_route.sh,v 1.10 2016/12/21 02:46:08 ozaki-r Exp $ # # Copyright (c) 2016 Internet Initiative Japan Inc. # All rights reserved. @@ -79,6 +79,7 @@ route_non_subnet_gateway_body() rump_server_add_iface $SOCK_CLIENT shmif0 $BUS atf_check -s exit:0 rump.ifconfig shmif0 10.0.0.1/32 atf_check -s exit:0 rump.ifconfig shmif0 up + atf_check -s exit:0 rump.ifconfig -w 10 $DEBUG && rump.netstat -nr -f inet @@ -141,6 +142,7 @@ setup_endpoint() atf_check -s exit:0 -o ignore rump.route add default ${gw} fi atf_check -s exit:0 rump.ifconfig shmif0 up + atf_check -s exit:0 rump.ifconfig -w 10 if $DEBUG; then rump.ifconfig shmif0 @@ -166,6 +168,7 @@ setup_forwarder() atf_check -s exit:0 rump.ifconfig shmif0 up atf_check -s exit:0 rump.ifconfig shmif1 up + atf_check -s exit:0 rump.ifconfig -w 10 if $DEBUG; then rump.netstat -nr