From cdb95062e79ef46dd8407591543bf6c73af65459 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 6 Nov 2019 13:52:25 +0100 Subject: [PATCH] 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. --- clients/tests/test-client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/tests/test-client.py b/clients/tests/test-client.py index af26756def..5ca150eb5b 100755 --- a/clients/tests/test-client.py +++ b/clients/tests/test-client.py @@ -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'