summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-06-30 17:26:53 +0300
committerLars Wirzenius <liw@liw.fi>2015-06-30 17:26:53 +0300
commit85ec7111bf45aa0a9b8203e39356fb0b9c65156b (patch)
tree984524390324b2ed8adb1efb1d30d5a9d5236e9d
parent9cc49a98bd3ba164ed724b2574e40b253e8ba241 (diff)
downloadcmdtest-85ec7111bf45aa0a9b8203e39356fb0b9c65156b.tar.gz
Flush ttystatus output when starting scenario, step
-rw-r--r--NEWS9
-rwxr-xr-xyarn3
2 files changed, 11 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2425720..2220611 100644
--- a/NEWS
+++ b/NEWS
@@ -3,7 +3,14 @@ NEWS for cmdtest
This file summarizes changes between releases of cmdtest.
-Version 0.14, released 2015-06-29
+Version 0.16, released 2015-06-30
+---------------------------------
+
+* Flush terminal status output whenever a new scenario or step is
+ started. This ensures the terminal isn't showing an earlier, very
+ fast step, when the actual current step is slow.
+
+Version 0.15, released 2015-06-29
---------------------------------
* Steps are indented when yarn is run in `--verbose` mode.
diff --git a/yarn b/yarn
index 9615e5b..faa99f6 100755
--- a/yarn
+++ b/yarn
@@ -291,12 +291,14 @@ class YarnRunner(cliapp.Application):
self.info(0, 'Running scenario %s' % scenario.name)
self.ts['scenario_name'] = scenario.name
+ self.ts.flush()
self.scenarios_run += 1
if self.settings['no-act']:
self.info(0, 'Pretending everything went OK')
for step in scenario.steps:
self.ts['current_step'] = step
+ self.ts.flush()
self.remember_scenario_timing(time.time() - started)
return True
@@ -404,6 +406,7 @@ class YarnRunner(cliapp.Application):
self.info(1, 'Running step "%s %s"' % (step.what, step.text))
self.ts['current_step'] = step
self.ts['step_name'] = '%s %s' % (step.what, step.text)
+ self.ts.flush()
self.steps_run += 1
m = self.implements_matches_step(step.implementation, step)