diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2023-04-13 13:06:38 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-05-12 12:42:54 +0200 |
commit | 63452e886f62c8051f29a2130bac772474cdbe0f (patch) | |
tree | ed1aac12f92ded5b408ea360f309a0690f5f9224 | |
parent | 2e8ff9f8a095fdc8b6fd3b4f0adfe880c9eb8c3a (diff) | |
download | NetworkManager-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-x | src/tests/client/test-client.py | 2 |
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, ) |