tests: fix output of end timestamp

This commit is contained in:
Moritz Bunkus 2015-12-31 13:17:49 +01:00
parent 4d81aa099c
commit 1cdbe9215e

View File

@ -68,10 +68,11 @@ class Controller
self.run_threads
self.join_threads
duration = Time.now - start
test_end = Time.now
duration = test_end - start
show_message "#{@num_failed}/#{num_tests} failed (" + (num_tests > 0 ? (@num_failed * 100 / num_tests).to_s : "0") + "%). " +
"Tests took #{duration}s (#{start.strftime("%Y-%m-%m %H:%M:%S")} #{duration.strftime("%Y-%m-%m %H:%M:%S")})"
"Tests took #{duration}s (#{start.strftime("%Y-%m-%m %H:%M:%S")} #{test_end.strftime("%Y-%m-%m %H:%M:%S")})"
end
def run_threads