Source-Changes-HG archive

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

[src/trunk]: src/tests/net/if_pppoe Fix the wrong state check



details:   https://anonhg.NetBSD.org/src/rev/b588d3ca27af
branches:  trunk
changeset: 1021159:b588d3ca27af
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu May 13 03:37:58 2021 +0000

description:
Fix the wrong state check

After disconnection from PPPoE server, the client waits for
reconnection in initial state or reconnects in PADI state.

diffstat:

 tests/net/if_pppoe/t_pppoe.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 15b5046a7508 -r b588d3ca27af tests/net/if_pppoe/t_pppoe.sh
--- a/tests/net/if_pppoe/t_pppoe.sh     Thu May 13 03:28:36 2021 +0000
+++ b/tests/net/if_pppoe/t_pppoe.sh     Thu May 13 03:37:58 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_pppoe.sh,v 1.31 2021/05/11 05:57:02 yamaguchi Exp $
+#      $NetBSD: t_pppoe.sh,v 1.32 2021/05/13 03:37:58 yamaguchi Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -204,7 +204,8 @@
        wait_for_disconnected
        atf_check -s not-exit:0 -o ignore -e ignore \
            rump.ping -c 1 -w $TIMEOUT $SERVER_IP
-       atf_check -s exit:0 -o match:'PADI sent' -x "$HIJACKING pppoectl -d pppoe0"
+       atf_check -s exit:0 -o match:'(PADI sent)|(initial)' \
+           -x "$HIJACKING pppoectl -d pppoe0"
        unset RUMP_SERVER
 
        # test for reconnecting



Home | Main Index | Thread Index | Old Index