Probe fix for filedescriptor issue #97

Merged
abereziny merged 1 commit from abereziny/frostfs-testlib:bugfix-probe-fix-for-filedescriptor-issue into master 2023-10-11 16:38:11 +00:00

View file

@ -39,7 +39,7 @@ class LocalShell(Shell):
log_file = tempfile.TemporaryFile() # File is reliable cross-platform way to capture output log_file = tempfile.TemporaryFile() # File is reliable cross-platform way to capture output
try: 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: except (pexpect.ExceptionPexpect, OSError) as exc:
raise RuntimeError(f"Command: {command}") from exc raise RuntimeError(f"Command: {command}") from exc