Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/route Add ifconfig -w to improve test stability



details:   https://anonhg.NetBSD.org/src/rev/c8f4f81a7185
branches:  trunk
changeset: 349730:c8f4f81a7185
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Dec 21 02:46:08 2016 +0000

description:
Add ifconfig -w to improve test stability

diffstat:

 tests/net/route/t_flags.sh  |  4 +++-
 tests/net/route/t_flags6.sh |  4 +++-
 tests/net/route/t_route.sh  |  5 ++++-
 3 files changed, 10 insertions(+), 3 deletions(-)

diffs (83 lines):

diff -r 5d4d8cea3ca3 -r c8f4f81a7185 tests/net/route/t_flags.sh
--- a/tests/net/route/t_flags.sh        Wed Dec 21 01:16:18 2016 +0000
+++ b/tests/net/route/t_flags.sh        Wed Dec 21 02:46:08 2016 +0000
@@ -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 @@
        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 @@
        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
diff -r 5d4d8cea3ca3 -r c8f4f81a7185 tests/net/route/t_flags6.sh
--- a/tests/net/route/t_flags6.sh       Wed Dec 21 01:16:18 2016 +0000
+++ b/tests/net/route/t_flags6.sh       Wed Dec 21 02:46:08 2016 +0000
@@ -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 @@
        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 @@
        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
diff -r 5d4d8cea3ca3 -r c8f4f81a7185 tests/net/route/t_route.sh
--- a/tests/net/route/t_route.sh        Wed Dec 21 01:16:18 2016 +0000
+++ b/tests/net/route/t_route.sh        Wed Dec 21 02:46:08 2016 +0000
@@ -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 @@
        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 @@
                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 @@
 
        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



Home | Main Index | Thread Index | Old Index