ctdb:tests: in the stub "ip link show" command use echo instead of cat
authorMichael Adam <obnox@samba.org>
Wed, 27 Nov 2013 22:43:53 +0000 (23:43 +0100)
committerMartin Schwenke <martins@samba.org>
Thu, 28 Nov 2013 08:23:03 +0000 (09:23 +0100)
This case of "ip link show" does not break autobuild with
"Broken pipe" messages, but let's be consistent.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Nov 28 09:23:03 CET 2013 on sn-devel-104

ctdb/tests/eventscripts/stubs/ip

index d4c9d8ab7ddcdedbe2355b515aa3c91be740d0ba..d852cf861d526afa7f91163117e79e66ee4b62e1 100755 (executable)
@@ -64,10 +64,8 @@ ip_link_show ()
        _state="DOWN"
        _flags=""
     fi
-    cat <<EOF
-${n}: ${dev}: <BROADCAST,MULTICAST${_flags}> mtu 1500 qdisc pfifo_fast state ${_state} qlen 1000
-    link/ether ${mac} brd ff:ff:ff:ff:ff:ff
-EOF
+    echo "${n}: ${dev}: <BROADCAST,MULTICAST${_flags}> mtu 1500 qdisc pfifo_fast state ${_state} qlen 1000"
+    echo "    link/ether ${mac} brd ff:ff:ff:ff:ff:ff"
 }
 
 # This is incomplete because it doesn't actually look up table ids in