From: Tim Newsome Date: Thu, 16 Jun 2016 17:06:38 +0000 (-0700) Subject: Increase "load" timeout. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36b305709080d84b5d4516ab344acb09349ae6d8;p=riscv-tests.git Increase "load" timeout. --- 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