[libgpiod][PATCH 2/2] bindings: python: fix python-tests-run make target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 bindings/python/Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index 65964c7..c14a6d4 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -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
 
-- 
2.39.2





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux