projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45351b7
)
Print log filename at the end of the log.
author
Tim Newsome
<tim@sifive.com>
Fri, 23 Mar 2018 20:27:52 +0000
(13:27 -0700)
committer
Tim Newsome
<tim@sifive.com>
Fri, 23 Mar 2018 20:27:52 +0000
(13:27 -0700)
This makes it much easier to look at a log if you see a failure
scrolling by on your terminal.
debug/testlib.py
patch
|
blob
|
history
diff --git
a/debug/testlib.py
b/debug/testlib.py
index 5c40a5dd135a116c639bd6ea3098c9aa904c3348..fd587bd3188efc1dc33b5e0cf22b046d3523e869 100644
(file)
--- a/
debug/testlib.py
+++ b/
debug/testlib.py
@@
-643,6
+643,7
@@
def run_tests(parsed, target, todo):
try:
result = instance.run()
log_fd.write("Result: %s\n" % result)
+ log_fd.write("Logfile: %s\n" % log_name)
finally:
sys.stdout = real_stdout
log_fd.write("Time elapsed: %.2fs\n" % (time.time() - start))