summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2023-04-13 13:06:38 +0200
committerThomas Haller <thaller@redhat.com>2023-05-12 12:42:54 +0200
commit63452e886f62c8051f29a2130bac772474cdbe0f (patch)
treeed1aac12f92ded5b408ea360f309a0690f5f9224
parent2e8ff9f8a095fdc8b6fd3b4f0adfe880c9eb8c3a (diff)
downloadNetworkManager-63452e886f62c8051f29a2130bac772474cdbe0f.tar.gz
test: fix file description passing to cloud-setup mock service
The pass_fds file descriptor is *after* the dup2. Always 3.
-rwxr-xr-xsrc/tests/client/test-client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py
index eadc2d4964..3077f21e32 100755
--- a/src/tests/client/test-client.py
+++ b/src/tests/client/test-client.py
@@ -2172,7 +2172,7 @@ class TestNmCloudSetup(TestNmClient):
[sys.executable, service_path],
stdin=subprocess.PIPE,
env=env,
- pass_fds=(s.fileno(),),
+ pass_fds=(3,),
preexec_fn=pass_socket,
)