nixos/test-driver: more context when step finishes

When displaying the amount of time some step took, with no other
context, it becomes nigh impossible (especially in longer tests) to see
when specific steps finished.

(cherry picked from commit c6ee63259a)
This commit is contained in:
Cole Helbling
2021-11-18 08:53:54 -08:00
committed by Cole Helbling
parent 8a053bc225
commit 11ec91d759

View File

@@ -171,7 +171,7 @@ class Logger:
yield
self.drain_log_queue()
toc = time.time()
self.log("({:.2f} seconds)".format(toc - tic))
self.log("(finished: {}, in {:.2f} seconds)".format(message, toc - tic))
self.xml.endElement("nest")