From 831558d884fe92f521473fc4785bc1131244b9ea Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 8 Sep 2016 15:56:33 +0930 Subject: [PATCH] test.sh: remove scary-looking output from 'make check' NO_VALGRIND= daemon/test/test.sh --normal --restart lightning-cli: Connecting to 'lightning-rpc': Connection refused lightning-cli: Connecting to 'lightning-rpc': Connection refused lightning-cli: Connecting to 'lightning-rpc': Connection refused lightning-cli: Connecting to 'lightning-rpc': Connection refused lightning-cli: Connecting to 'lightning-rpc': Connection refused This is expected: it happens when node3 is restarting. Redirect errors to /dev/null. Signed-off-by: Rusty Russell --- daemon/test/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/test/test.sh b/daemon/test/test.sh index e645731b4..512603b1d 100755 --- a/daemon/test/test.sh +++ b/daemon/test/test.sh @@ -1052,7 +1052,7 @@ if [ ! -n "$MANUALCOMMIT" ]; then # If restarting, make sure node3 remembers incoming payment. if [ "$RECONNECT" = restart ]; then $LCLI3 -- dev-restart $LIGHTNINGD3 >/dev/null 2>&1 || true - if ! check "$LCLI3 getpeers | tr -s '\012\011\" ' ' ' | fgrep -q 'connected : true'"; then + if ! check "$LCLI3 getpeers 2>/dev/null | tr -s '\012\011\" ' ' ' | fgrep -q 'connected : true'"; then echo "Failed to reconnect!">&2 exit 1 fi