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/5c2a3b63f061
branches: trunk
changeset: 379128:5c2a3b63f061
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 76b769019902 -r 5c2a3b63f061 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 @@ 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
Home |
Main Index |
Thread Index |
Old Index