From 36b305709080d84b5d4516ab344acb09349ae6d8 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 16 Jun 2016 10:06:38 -0700 Subject: [PATCH] Increase "load" timeout. --- debug/testlib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debug/testlib.py b/debug/testlib.py index 53e670e..e749a1a 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -102,8 +102,8 @@ class Openocd(object): pass class Gdb(object): - def __init__(self): - path = os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gdb") + def __init__(self, + path=os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gdb")): self.child = pexpect.spawn(path) self.child.logfile = file("gdb.log", "w") self.wait() @@ -153,7 +153,7 @@ class Gdb(object): return output def load(self): - output = self.command("load") + output = self.command("load", timeout=60) assert "failed" not in output assert "Transfer rate" in output -- 2.30.2