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()
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