From 7b1187d446129b0818b87286ea5c8ea39ce157a4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 17 Aug 2016 14:46:36 +0930 Subject: [PATCH] check: make (successful) tests less noisy. Particularly, don't show the output for generating 432 blocks! Signed-off-by: Rusty Russell --- daemon/test/scripts/generate-block.sh | 4 ++-- daemon/test/test.sh | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/daemon/test/scripts/generate-block.sh b/daemon/test/scripts/generate-block.sh index 4f5320b5e..2b5f3820e 100755 --- a/daemon/test/scripts/generate-block.sh +++ b/daemon/test/scripts/generate-block.sh @@ -9,7 +9,7 @@ INIT=$1 # Initially we need 100 blocks so coinbase matures, giving us funds. if [ -n "$INIT" ]; then # To activate segwit via BIP9, we need at least 432 blocks! - $CLI generate 432 + $CLI generate 432 > /dev/null if $CLI getblockchaininfo | tr -s '\012\011 ' ' ' | grep -q '"segwit": { "status": "active",'; then : else echo "Segwit not activated after 432 blocks?" >&2 @@ -17,5 +17,5 @@ if [ -n "$INIT" ]; then exit 1 fi else - $CLI generate 1 + $CLI generate 1 > /dev/null fi diff --git a/daemon/test/test.sh b/daemon/test/test.sh index e15799da2..6c8900feb 100755 --- a/daemon/test/test.sh +++ b/daemon/test/test.sh @@ -497,7 +497,6 @@ fi check_status $A_AMOUNT $A_FEE '{ "msatoshis" : '$HTLC_AMOUNT', "expiry" : { "block" : '$EXPIRY' }, "rhash" : "'$RHASH'" } ' $B_AMOUNT $B_FEE "" if [ -n "$STEAL" ]; then - $LCLI1 dev-signcommit $ID2 >&2 STEAL_TX=`$LCLI1 dev-signcommit $ID2 | cut -d\" -f4` fi