mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
test: do version check during setup.
Waiting until lightningd is up is too long: do a --version test in setup, and then check that all reported versions match later on. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
. `dirname $0`/vars.sh
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user