From 8113c00b99d303c8073a2493f6b8978600e54967 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Mon, 9 Jul 2018 12:38:59 +0200 Subject: pylibfdt: Allow switch to Python 3 via environment variable PYTHON Python 2 is still the default but it can be changed by setting environment variable PYTHON before build/test. Signed-off-by: Lumir Balhar Signed-off-by: David Gibson --- tests/Makefile.tests | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/Makefile.tests') diff --git a/tests/Makefile.tests b/tests/Makefile.tests index 6ddf444..8b63f60 100644 --- a/tests/Makefile.tests +++ b/tests/Makefile.tests @@ -81,18 +81,18 @@ tests_clean: rm -rf $(TESTS_CLEANDIRS) check: tests ${TESTS_BIN} $(TESTS_PYLIBFDT) - cd $(TESTS_PREFIX); ./run_tests.sh + cd $(TESTS_PREFIX); PYTHON=$(PYTHON) ./run_tests.sh ifeq ($(NO_VALGRIND),1) checkm: @echo "make checkm requires valgrind, but NO_VALGRIND=1" else checkm: tests ${TESTS_BIN} $(TESTS_PYLIBFDT) - cd $(TESTS_PREFIX); ./run_tests.sh -m + cd $(TESTS_PREFIX); PYTHON=$(PYTHON) ./run_tests.sh -m endif checkv: tests ${TESTS_BIN} $(TESTS_PYLIBFDT) - cd $(TESTS_PREFIX); ./run_tests.sh -v + cd $(TESTS_PREFIX); PYTHON=$(PYTHON) ./run_tests.sh -v ifneq ($(DEPTARGETS),) -include $(TESTS_DEPFILES) -- cgit v1.1