Module Name: src
Committed By: ozaki-r
Date: Tue Jan 10 05:55:10 UTC 2017
Modified Files:
src/tests/net: net_common.sh
Log Message:
Test dumping states before destroying interfaces
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/net/net_common.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/net_common.sh
diff -u src/tests/net/net_common.sh:1.9 src/tests/net/net_common.sh:1.10
--- src/tests/net/net_common.sh:1.9 Mon Nov 28 07:29:56 2016
+++ src/tests/net/net_common.sh Tue Jan 10 05:55:10 2017
@@ -1,4 +1,4 @@
-# $NetBSD: net_common.sh,v 1.9 2016/11/28 07:29:56 ozaki-r Exp $
+# $NetBSD: net_common.sh,v 1.10 2017/01/10 05:55:10 ozaki-r Exp $
#
# Copyright (c) 2016 Internet Initiative Japan Inc.
# All rights reserved.
@@ -219,6 +219,16 @@ rump_server_destroy_ifaces()
local backup=$RUMP_SERVER
$DEBUG && cat $_rump_server_ifaces
+
+ # Try to dump states before destroying interfaces
+ for sock in $(cat $_rump_server_socks); do
+ export RUMP_SERVER=$sock
+ atf_check -s exit:0 -o ignore rump.ifconfig
+ atf_check -s exit:0 -o ignore rump.netstat -nr
+ atf_check -s exit:0 -o ignore rump.arp -na
+ atf_check -s exit:0 -o ignore rump.ndp -na
+ done
+
# XXX using pipe doesn't work. See PR bin/51667
#cat $_rump_server_ifaces | while read sock ifname; do
while read sock ifname; do