summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-12-25 21:05:43 +0200
committerLars Wirzenius <liw@liw.fi>2016-12-25 21:05:43 +0200
commit9e36a5a492f135771dc9a2132177dbfd7b92a928 (patch)
tree737cb6ea77ed62945414dce865fec9685c01f902
parente4fd57b5fcdb147ad08f96889ac6eea06b3ac609 (diff)
downloadcmdtest-9e36a5a492f135771dc9a2132177dbfd7b92a928.tar.gz
Make --timintgs output be on multiple lines
-rw-r--r--NEWS2
-rwxr-xr-xyarn4
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()