summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-11-06 13:52:25 +0100
committerThomas Haller <thaller@redhat.com>2019-11-07 11:34:36 +0100
commitcdb95062e79ef46dd8407591543bf6c73af65459 (patch)
treef0042d4d79c771d4b4b20dd6cb73f41237307535
parent6a9ed0adfb896efd341531cfed5c8c466048546b (diff)
downloadNetworkManager-cdb95062e79ef46dd8407591543bf6c73af65459.tar.gz
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.
-rwxr-xr-xclients/tests/test-client.py1
1 files changed, 1 insertions, 0 deletions
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'