mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
pytest: fix make pytest
Travis adds the correct PYTHONPATH, but "make check" doesn't. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
28cdccfb11
commit
eaa72edbd6
@ -10,7 +10,7 @@ export SOURCE_CHECK_ONLY=${SOURCE_CHECK_ONLY:-"false"}
|
|||||||
export COMPAT=${COMPAT:-1}
|
export COMPAT=${COMPAT:-1}
|
||||||
export PATH=$CWD/dependencies/bin:"$HOME"/.local/bin:"$PATH"
|
export PATH=$CWD/dependencies/bin:"$HOME"/.local/bin:"$PATH"
|
||||||
export PYTEST_PAR=2
|
export PYTEST_PAR=2
|
||||||
export PYTHONPATH=$PWD/contrib/pylightning:$PYTHONPATH
|
|
||||||
# If we're not in developer mode, tests spend a lot of time waiting for gossip!
|
# If we're not in developer mode, tests spend a lot of time waiting for gossip!
|
||||||
# But if we're under valgrind, we can run out of memory!
|
# But if we're under valgrind, we can run out of memory!
|
||||||
if [ "$DEVELOPER" = 0 ] && [ "$VALGRIND" = 0 ]; then
|
if [ "$DEVELOPER" = 0 ] && [ "$VALGRIND" = 0 ]; then
|
||||||
|
2
Makefile
2
Makefile
@ -263,7 +263,7 @@ ifeq ($(PYTEST),)
|
|||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
# Explicitly hand DEVELOPER and VALGRIND so you can override on make cmd line.
|
# Explicitly hand DEVELOPER and VALGRIND so you can override on make cmd line.
|
||||||
PYTHONPATH=`pwd`/contrib/pyln-client:`pwd`/contrib/pyln-testing:$$PYTHONPATH TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) VALGRIND=$(VALGRIND) $(PYTEST) tests/ $(PYTEST_OPTS)
|
PYTHONPATH=`pwd`/contrib/pyln-client:`pwd`/contrib/pyln-testing:`pwd`/contrib/pylightning:$$PYTHONPATH TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) VALGRIND=$(VALGRIND) $(PYTEST) tests/ $(PYTEST_OPTS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Keep includes in alpha order.
|
# Keep includes in alpha order.
|
||||||
|
Loading…
Reference in New Issue
Block a user