Source-Changes-HG archive

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

[src/trunk]: src/tests/net Use redirection instead of pipeline



details:   https://anonhg.NetBSD.org/src/rev/d99de5a62de8
branches:  trunk
changeset: 349189:d99de5a62de8
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Nov 28 07:29:56 2016 +0000

description:
Use redirection instead of pipeline

This is a workaround for PR bin/51667.

diffstat:

 tests/net/net_common.sh |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2bf6efaf72bf -r d99de5a62de8 tests/net/net_common.sh
--- a/tests/net/net_common.sh   Mon Nov 28 06:09:19 2016 +0000
+++ b/tests/net/net_common.sh   Mon Nov 28 07:29:56 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: net_common.sh,v 1.8 2016/11/26 03:20:42 ozaki-r Exp $
+#      $NetBSD: net_common.sh,v 1.9 2016/11/28 07:29:56 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -219,13 +219,15 @@
        local backup=$RUMP_SERVER
 
        $DEBUG && cat $_rump_server_ifaces
-       cat $_rump_server_ifaces | while read sock ifname; do
+       # XXX using pipe doesn't work. See PR bin/51667
+       #cat $_rump_server_ifaces | while read sock ifname; do
+       while read sock ifname; do
                export RUMP_SERVER=$sock
                if rump.ifconfig -l |grep -q $ifname; then
                        atf_check -s exit:0 rump.ifconfig $ifname destroy
                fi
                atf_check -s exit:0 -o ignore rump.ifconfig
-       done
+       done < $_rump_server_ifaces
        export RUMP_SERVER=$backup
 
        return 0



Home | Main Index | Thread Index | Old Index