test: fix file description passing to cloud-setup mock service

The pass_fds file descriptor is *after* the dup2. Always 3.
This commit is contained in:
Lubomir Rintel
2023-04-13 13:06:38 +02:00
committed by Thomas Haller
parent 2e8ff9f8a0
commit 63452e886f

View File

@@ -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,
)