diff options
Diffstat (limited to 'yarn')
-rwxr-xr-x | yarn | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -84,6 +84,10 @@ class YarnRunner(cliapp.Application): 'allow scenarios to reference steps that do not exist, ' 'by warning about them, but otherwise ignoring the scenarios') + self.settings.boolean( + ['require-assumptions'], + 'require ASSUMING to always pass') + def stdout(self, msg): self.output.write(msg) self.output.flush() @@ -338,7 +342,10 @@ class YarnRunner(cliapp.Application): step_number += 1 self.snapshot_datadir( tempdir, datadir, scenario, step_number, step) - if exit != 0: + if self.settings['require-assumptions'] and exit != 0: + ok = False + break + elif exit != 0: self.ts.notify( 'Skipping "%s" because "%s %s" failed' % (scenario.name, step.what, step.text)) |