summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-27 23:43:53 +0100
committerMartin Schwenke <martins@samba.org>2013-11-28 09:23:03 +0100
commite2db9c524f40f8771ae19b2be47a56f7a9d887af (patch)
tree1cbc00841f9c66240423da269893b8241c814c6f
parente9f4b69bae08af6a4a228fc5f9ae1df9628819b1 (diff)
downloadsamba-e2db9c524f40f8771ae19b2be47a56f7a9d887af.tar.gz
samba-e2db9c524f40f8771ae19b2be47a56f7a9d887af.tar.xz
samba-e2db9c524f40f8771ae19b2be47a56f7a9d887af.zip
ctdb:tests: in the stub "ip link show" command use echo instead of cat
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
-rwxr-xr-xctdb/tests/eventscripts/stubs/ip6
1 files changed, 2 insertions, 4 deletions
diff --git a/ctdb/tests/eventscripts/stubs/ip b/ctdb/tests/eventscripts/stubs/ip
index d4c9d8ab7d..d852cf861d 100755
--- a/ctdb/tests/eventscripts/stubs/ip
+++ b/ctdb/tests/eventscripts/stubs/ip
@@ -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