From 97c6ef4ea678ef9a69e1feaf9d77a0880bca09ba Mon Sep 17 00:00:00 2001 From: Muhammad Omair Javaid Date: Mon, 2 Aug 2021 06:31:52 +0500 Subject: [PATCH] [LLDB] Change pexpect timeout to 30 to 60 Test dependent on pexpect fail randomly with timeouts on Arm/AArch64 Linux buildbots. I am setting pexpect timeout from 30 to 60. I will revert this back if this doesnt improve random failures. --- lldb/packages/Python/lldbsuite/test/lldbpexpect.py | 2 +- lldb/third_party/Python/module/pexpect-4.6/pexpect/spawnbase.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/packages/Python/lldbsuite/test/lldbpexpect.py b/lldb/packages/Python/lldbsuite/test/lldbpexpect.py index 388e91892888..f7c0e490105a 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbpexpect.py +++ b/lldb/packages/Python/lldbsuite/test/lldbpexpect.py @@ -23,7 +23,7 @@ class PExpectTest(TestBase): def expect_prompt(self): self.child.expect_exact(self.PROMPT) - def launch(self, executable=None, extra_args=None, timeout=30, dimensions=None): + def launch(self, executable=None, extra_args=None, timeout=60, dimensions=None): logfile = getattr(sys.stdout, 'buffer', sys.stdout) if self.TraceOn() else None diff --git a/lldb/third_party/Python/module/pexpect-4.6/pexpect/spawnbase.py b/lldb/third_party/Python/module/pexpect-4.6/pexpect/spawnbase.py index 4bebe1158478..589d5ec92465 100644 --- a/lldb/third_party/Python/module/pexpect-4.6/pexpect/spawnbase.py +++ b/lldb/third_party/Python/module/pexpect-4.6/pexpect/spawnbase.py @@ -30,7 +30,7 @@ class SpawnBase(object): pid = None flag_eof = False - def __init__(self, timeout=30, maxread=2000, searchwindowsize=None, + def __init__(self, timeout=60, maxread=2000, searchwindowsize=None, logfile=None, encoding=None, codec_errors='strict'): self.stdin = sys.stdin self.stdout = sys.stdout