From 70f469e05e279e29980df2af10dd89c53001b236 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 27 Nov 2013 12:13:40 +0100 Subject: ctdb:tests: in the stub ip command, avoid broken pipe by using echo instead of cat This fixes running "make autotest" from autobuild, since it prevents irritating error output in delete_ip_from_iface() when calling ip addr list ... | grep -Fq "inet ..." . Signed-off-by: Michael Adam Reviewed-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/eventscripts/stubs/ip | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'ctdb/tests') diff --git a/ctdb/tests/eventscripts/stubs/ip b/ctdb/tests/eventscripts/stubs/ip index 053da750b9c..d4c9d8ab7dd 100755 --- a/ctdb/tests/eventscripts/stubs/ip +++ b/ctdb/tests/eventscripts/stubs/ip @@ -166,25 +166,19 @@ ip_addr_show () read local <"$pf" if [ -z "$_to" -o "${_to%/*}" = "${local%/*}" ] ; then calc_brd - cat <