From 63452e886f62c8051f29a2130bac772474cdbe0f Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 13 Apr 2023 13:06:38 +0200 Subject: [PATCH] test: fix file description passing to cloud-setup mock service The pass_fds file descriptor is *after* the dup2. Always 3. --- src/tests/client/test-client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, )