Module Name: src
Committed By: yamaguchi
Date: Thu May 13 03:37:58 UTC 2021
Modified Files:
src/tests/net/if_pppoe: t_pppoe.sh
Log Message:
Fix the wrong state check
After disconnection from PPPoE server, the client waits for
reconnection in initial state or reconnects in PADI state.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/tests/net/if_pppoe/t_pppoe.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/if_pppoe/t_pppoe.sh
diff -u src/tests/net/if_pppoe/t_pppoe.sh:1.31 src/tests/net/if_pppoe/t_pppoe.sh:1.32
--- src/tests/net/if_pppoe/t_pppoe.sh:1.31 Tue May 11 05:57:02 2021
+++ src/tests/net/if_pppoe/t_pppoe.sh Thu May 13 03:37:58 2021
@@ -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 @@ run_test()
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