Print log filename at the end of the log.
authorTim Newsome <tim@sifive.com>
Fri, 23 Mar 2018 20:27:52 +0000 (13:27 -0700)
committerTim 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

index 5c40a5dd135a116c639bd6ea3098c9aa904c3348..fd587bd3188efc1dc33b5e0cf22b046d3523e869 100644 (file)
@@ -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))