ci:test:aio
skips the post-suite
if any tests fail, but ci:test:aio[true]
doesn't
#237
Labels
ci:test:aio
skips the post-suite
if any tests fail, but ci:test:aio[true]
doesn't
#237
Describe the Bug
When running the
ci:test:aio
rake task (with retries disabled), if any test fails, then thepost-suite
is skipped:beaker-puppet/tasks/ci.rake
Lines 320 to 323 in 5f0984a
This is because
beaker(:exec, ...)
raises if any test fails and thepost-suite
isn't in an ensure block.However,
ci:test:aio[true]
(with retries enabled) does execute the post-suite, because it's been moved to theensure
block.beaker-puppet/tasks/ci.rake
Lines 348 to 349 in 5f0984a
Expected Behavior
The
post-suite
should always be executed irrespective of whether retries are enabled or not.Also if the
post-suite
fails/raises, then we should ensure hosts are still destroyed tooSteps to Reproduce
Steps to reproduce the behavior:
But when retries are enabled, the post-suite is executed:
Environment
The text was updated successfully, but these errors were encountered: