From 9e36a5a492f135771dc9a2132177dbfd7b92a928 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 25 Dec 2016 21:05:43 +0200 Subject: Make --timintgs output be on multiple lines --- NEWS | 2 ++ yarn | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 2e4d27c..cfc4e2c 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ This file summarizes changes between releases of cmdtest. Version 0.27+git, not yet released ---------------------------------- +* Output from `--timings` is now properly formatted, rather than it + all being on one line. Daniel Silverstone reported the bug. Version 0.27, released 2016-09-21 ---------------------------------- diff --git a/yarn b/yarn index 8d2bef3..3d4865e 100755 --- a/yarn +++ b/yarn @@ -587,9 +587,9 @@ class YarnRunner(cliapp.Application): def report_timings(self): for scenario_name, scenario_duration, step_tuples in self.timings: - self.stdout('%5.1f %s' % (scenario_duration, scenario_name)) + self.stdout('%5.1f %s\n' % (scenario_duration, scenario_name)) for step_name, step_duration in step_tuples: - self.stdout(' %5.1f %s' % (step_duration, step_name)) + self.stdout(' %5.1f %s\n' % (step_duration, step_name)) YarnRunner(version=yarnlib.__version__).run() -- cgit v1.2.1