aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-06-16 10:06:38 -0700
committerTim Newsome <tim@sifive.com>2016-07-18 18:51:54 -0700
commit36b305709080d84b5d4516ab344acb09349ae6d8 (patch)
tree9237f8cebb2dccd37fdca6d8db6265cf77e94db6 /debug/testlib.py
parent1fab0e2bfdd441e5b8e11348d7db520286f64289 (diff)
downloadriscv-tests-36b305709080d84b5d4516ab344acb09349ae6d8.zip
riscv-tests-36b305709080d84b5d4516ab344acb09349ae6d8.tar.gz
riscv-tests-36b305709080d84b5d4516ab344acb09349ae6d8.tar.bz2
Increase "load" timeout.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py6
1 files 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