From a1d215a46d6eaff23a2cc8b3c9ebdccd0dde65cb Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 3 Jan 2018 11:20:57 -0800 Subject: [PATCH] make: append contrib/pylightning to PYTHONPATH Append contrib/pylightning instead of overriding PYTHONPATH for tests. Signed-off-by: William Casarin --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5a27bc494..cca41d0b8 100644 --- a/Makefile +++ b/Makefile @@ -179,9 +179,9 @@ check: pytest: $(ALL_PROGRAMS) ifndef PYTEST - PYTHONPATH=contrib/pylightning DEVELOPER=$(DEVELOPER) python3 tests/test_lightningd.py -f + PYTHONPATH=contrib/pylightning:$$PYTHONPATH DEVELOPER=$(DEVELOPER) python3 tests/test_lightningd.py -f else - PYTHONPATH=contrib/pylightning TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) $(PYTEST) -vx tests/test_lightningd.py --test-group=$(TEST_GROUP) --test-group-count=$(TEST_GROUP_COUNT) + PYTHONPATH=contrib/pylightning:$$PYTHONPATH TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) $(PYTEST) -vx tests/test_lightningd.py --test-group=$(TEST_GROUP) --test-group-count=$(TEST_GROUP_COUNT) endif # Keep includes in alpha order.