clients/tests: set NM_TEST_CALLING_NUM environement variable for client tests

Debugging tests that are called by test-client.py is cumbersome.
One way would be to set NM_TEST_CLIENT_NMCLI_PATH to a wrapper script.
However, then we want to know from the wrapper script which test
we are currently calling. Add that to the environment.
This commit is contained in:
Thomas Haller 2019-11-06 13:52:25 +01:00
parent 6a9ed0adfb
commit cdb95062e7

View file

@ -670,6 +670,7 @@ class TestNmcli(NmTestBase):
env['TERM'] = 'linux'
env['ASAN_OPTIONS'] = 'detect_leaks=0'
env['XDG_CONFIG_HOME'] = PathConfiguration.srcdir()
env['NM_TEST_CALLING_NUM'] = str(calling_num)
if fatal_warnings is _DEFAULT_ARG or fatal_warnings:
env['G_DEBUG'] = 'fatal-warnings'