Skip to content

Commit

Permalink
tests: No need to explicitly pass $PYTHON from Make to run_tests.sh
Browse files Browse the repository at this point in the history
Make automatically passes its variables through the environment, so
we don't need to explicitly copy this one into the test script.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
  • Loading branch information
dgibson committed Mar 4, 2020
1 parent 2b5f62d commit 95ec8ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Makefile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ tests_clean:
rm -rf $(TESTS_CLEANDIRS)

check: tests ${TESTS_BIN} $(TESTS_PYLIBFDT)
cd $(TESTS_PREFIX); PYTHON=$(PYTHON) ./run_tests.sh
cd $(TESTS_PREFIX); ./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); PYTHON=$(PYTHON) ./run_tests.sh -m
cd $(TESTS_PREFIX); ./run_tests.sh -m
endif

checkv: tests ${TESTS_BIN} $(TESTS_PYLIBFDT)
cd $(TESTS_PREFIX); PYTHON=$(PYTHON) ./run_tests.sh -v
cd $(TESTS_PREFIX); ./run_tests.sh -v

ifneq ($(DEPTARGETS),)
-include $(TESTS_DEPFILES)
Expand Down

0 comments on commit 95ec8ef

Please sign in to comment.