Browse Source

check: make (successful) tests less noisy.

Particularly, don't show the output for generating 432 blocks!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
7b1187d446
  1. 4
      daemon/test/scripts/generate-block.sh
  2. 1
      daemon/test/test.sh

4
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

1
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

Loading…
Cancel
Save