test.sh: move core routines to scripts/helpers.sh

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-11-10 23:32:35 +10:30
parent 973ef3c932
commit 9e777ae922
4 changed files with 493 additions and 437 deletions

View File

@@ -5,11 +5,6 @@
VERSION=$(`dirname $0`/../../lightning-cli --version | head -n1)
[ $VERSION = `git describe --always --dirty` ] || (echo Wrong version $VERSION >&2; exit 1)
if $CLI getinfo 2>/dev/null; then
echo $DAEMON already running >&2
exit 1
fi
# Start clean
rm -rf $DATADIR
mkdir $DATADIR