bindings: python: fix python-tests-run make target
authorKent Gibson <warthog618@gmail.com>
Sun, 26 May 2024 11:32:34 +0000 (19:32 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 28 May 2024 09:13:15 +0000 (11:13 +0200)
The python-tests-run target is broken as it does not correctly split
lines.  It also calls Python directly rather then through the $PYTHON
variable.

Fix the line splitting and call Python using the $PYTHON variable.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240526113234.253859-3-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/Makefile.am

index 65964c75a1ceafee111a738527952e0e3531eedd..c14a6d4d126284a4992c1573d2e4fa4da87eb8eb 100644 (file)
@@ -13,10 +13,10 @@ python-tests:
        $(PYTHON) build_tests.py
 
 python-tests-run:
-       PYTHONPATH=$(abs_top_srcdir)/bindings/python
+       PYTHONPATH=$(abs_top_srcdir)/bindings/python \
        LD_LIBRARY_PATH=$(abs_top_builddir)/lib/.libs/:\
-               $(abs_top_builddir)/tests/gpiosim/.libs/ \
-       python3 -B -m tests
+       $(abs_top_builddir)/tests/gpiosim/.libs/ \
+       $(PYTHON) -B -m tests
 
 else