mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 10:46:59 +00:00
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.
This commit is contained in:
parent
468061419a
commit
347e3e3689
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue