diff options
| author | Tim Newsome <tim@sifive.com> | 2017-02-24 13:52:50 -0800 |
|---|---|---|
| committer | Tim Newsome <tim@sifive.com> | 2017-02-24 13:52:50 -0800 |
| commit | 2d9d6e87125e79f99c3c65fcb160f97c8e6f23d0 (patch) | |
| tree | a9c09145864d7c9479ec62ec15045ba0f6be6e47 /debug/testlib.py | |
| parent | 41afc80e8b816e361388e0025a42108bde55b6a1 (diff) | |
| download | riscv-tests-2d9d6e87125e79f99c3c65fcb160f97c8e6f23d0.zip riscv-tests-2d9d6e87125e79f99c3c65fcb160f97c8e6f23d0.tar.gz riscv-tests-2d9d6e87125e79f99c3c65fcb160f97c8e6f23d0.tar.bz2 | |
Add assert to save me from myself.
spike passes the download test, but needs a 15 minute timeout. That's
too ridiculous to put in here, but 60s is reasonable.
Diffstat (limited to 'debug/testlib.py')
| -rw-r--r-- | debug/testlib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 11ea4fb..03ee0b4 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -58,7 +58,7 @@ class Spike(object): if cmd: cmd = shlex.split(cmd) else: - cmd = ["spike", "-l"] + cmd = ["spike"] if xlen == 32: cmd += ["--isa", "RV32"] @@ -281,9 +281,9 @@ class Gdb(object): self.child.expect(r"\(gdb\)", timeout=timeout) return self.child.before.strip() - def c(self, wait=True): + def c(self, wait=True, timeout=-1): if wait: - output = self.command("c") + output = self.command("c", timeout=timeout) assert "Continuing" in output return output else: |
