mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-08 19:55:47 +00:00
clients/tests: ensure that we run nmcli before client tests for LTO
nmcli is build with libtool, so "clients/cli/nmcli" is really a shell script that invokes the real nmcli (at "clients/cli/.libs/nmcli"). When building with LTO for some reasons "clients/cli/nmcli" still does some build steps during the first invocation. That means, if we run `make check-local-clients-tests-test-client` it would first do the final build step. This takes a while, and the test times out (worse, we do that build step many times in parallel). Avoid that by invoking "clients/cli/nmcli" first.
This commit is contained in:
parent
c92a3ca5c2
commit
00e3fc036a
|
@ -4953,6 +4953,7 @@ endif
|
|||
|
||||
check-local-clients-tests-test-client: clients/cli/nmcli clients/tests/test-client.py
|
||||
mkdir -p "$(builddir)/clients/tests/"
|
||||
"$(builddir)/clients/cli/nmcli" --version
|
||||
GI_TYPELIB_PATH="$(abs_builddir)/libnm$${GI_TYPELIB_PATH:+:$$GI_TYPELIB_PATH}" \
|
||||
LD_LIBRARY_PATH="$(abs_builddir)/libnm/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}" \
|
||||
NM_TEST_CLIENT_BUILDDIR="$(abs_builddir)" \
|
||||
|
|
Loading…
Reference in New Issue
Block a user