mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 00:50:12 +01:00
tests/client: ensure that we run nmcli before client tests for LTO (again)
See also commit00e3fc036a('clients/tests: ensure that we run nmcli before client tests for LTO'). With the latest rework that code was dropped and tests (with LTO) are broken as they hit a timeout (aside taking much longer). Fixes:e643703418('tests/client: run "test-client.py" also for meson')
This commit is contained in:
parent
db773fd54e
commit
489c5f8cd8
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ export GI_TYPELIB_PATH="$BUILDDIR/src/libnm-client-impl${GI_TYPELIB_PATH:+:$GI_T
|
|||
export LD_LIBRARY_PATH="$LIBDIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||
export NM_TEST_CLIENT_BUILDDIR="$BUILDDIR"
|
||||
|
||||
# Run nmcli at least once. With libtool, nmcli is a shell script and with LTO
|
||||
# this seems to perform some slow setup during the first run. If we do that
|
||||
# during the test, it will timeout and fail.
|
||||
"$NM_TEST_CLIENT_NMCLI_PATH" --version &>/dev/null
|
||||
|
||||
# we first collect all the output in "test-client.log" and print it at once
|
||||
# afterwards. The only reason is that when you run with `make -j` that the
|
||||
# test output is grouped together.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue