summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-05-21 10:14:04 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-05-21 10:14:04 +0200
commit347e3e36895996e2503250f4d14cc757091cd9d0 (patch)
tree8583104c44dfabcda8435b012bdfcc57795d6fd0
parent468061419a643a2df73522f881d7307303127995 (diff)
tests: run the nmcli test with $PYTHON we autoconf'd
Avoids an annoying warning in Fedora: |DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. Also allows the user to override the Python version that's actually used.
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index d9176bd21..b4bd5437e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3795,6 +3795,7 @@ check-local-clients-tests-test-client: clients/cli/nmcli clients/tests/test-clie
LD_LIBRARY_PATH="$(abs_builddir)/libnm/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}" \
NM_TEST_CLIENT_BUILDDIR="$(abs_builddir)" \
NM_TEST_CLIENT_NMCLI_PATH=clients/cli/nmcli \
+ "$(PYTHON)" \
$(srcdir)/clients/tests/test-client.py -v &> "$(builddir)/clients/tests/test-client.log" && r=ok; \
cat "$(builddir)/clients/tests/test-client.log"; \
test "$$r" == ok