Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ce2d63f

Browse files
committed
cd into dir with python tests.
Python interpreter can't find otherwise if called from external directory (e.g. in vpath build).
1 parent 7d4420b commit ce2d63f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/python/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
# we need to cd into dir with tests.py, otherwise unittest won't find it
2+
# dir containing this makefile
3+
mkfile_dir := $(shell dirname $(shell readlink -f $(abspath $(lastword $(MAKEFILE_LIST)))))
4+
15
all:
2-
python3 -m unittest tests.py -v -f
6+
cd $(mkfile_dir) && python3 -m unittest tests.py -v -f

0 commit comments

Comments
 (0)