From 98f9c78f099d9740a669c66cb65d5a7674e7d041 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Wed, 11 Oct 2023 18:21:40 +0300 Subject: [PATCH] [#97] Probe fix for filedescriptor issue Signed-off-by: Andrey Berezin --- src/frostfs_testlib/shell/local_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frostfs_testlib/shell/local_shell.py b/src/frostfs_testlib/shell/local_shell.py index 56d19b2..fa07890 100644 --- a/src/frostfs_testlib/shell/local_shell.py +++ b/src/frostfs_testlib/shell/local_shell.py @@ -39,7 +39,7 @@ class LocalShell(Shell): log_file = tempfile.TemporaryFile() # File is reliable cross-platform way to capture output try: - command_process = pexpect.spawn(command, timeout=options.timeout) + command_process = pexpect.spawn(command, timeout=options.timeout, use_poll=True) except (pexpect.ExceptionPexpect, OSError) as exc: raise RuntimeError(f"Command: {command}") from exc