Increase "load" timeout.
authorTim Newsome <tim@sifive.com>
Thu, 16 Jun 2016 17:06:38 +0000 (10:06 -0700)
committerTim Newsome <tim@sifive.com>
Tue, 19 Jul 2016 01:51:54 +0000 (18:51 -0700)
debug/testlib.py

index 53e670ec51c006fa96cbb0ea2f201e5f77fb7f7c..e749a1a7919bbf2827559e098fc187657ee7aa69 100644 (file)
@@ -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