Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.sbin/tcpdump t_tcpdump: skip bridges



details:   https://anonhg.NetBSD.org/src/rev/e8fabe64d30d
branches:  trunk
changeset: 332418:e8fabe64d30d
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Sat Sep 20 06:08:07 2014 +0000

description:
t_tcpdump: skip bridges

tcpdump on a bridge definitely fails, so skip bridges
to make the test robust.

PR 49050

diffstat:

 tests/usr.sbin/tcpdump/t_tcpdump.sh |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r fab495e20176 -r e8fabe64d30d tests/usr.sbin/tcpdump/t_tcpdump.sh
--- a/tests/usr.sbin/tcpdump/t_tcpdump.sh       Sat Sep 20 04:53:19 2014 +0000
+++ b/tests/usr.sbin/tcpdump/t_tcpdump.sh       Sat Sep 20 06:08:07 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_tcpdump.sh,v 1.3 2012/04/15 03:05:57 christos Exp $
+# $NetBSD: t_tcpdump.sh,v 1.4 2014/09/20 06:08:07 ozaki-r Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -42,6 +42,13 @@
 promiscuous_body() {
 
        for i in $(ifconfig -l); do
+               case $i in
+               bridge*)
+                       echo "Skipping $i"
+                       continue
+                       ;;
+               esac
+
                echo "Testing $i"
                prom $i
        done



Home | Main Index | Thread Index | Old Index