-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move abort detection into test invocation #3040
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just one question. Shouldn't the check_abort_file
method be removed from the ExecutePlugin
class as it is no longer used?
f5263f8
to
e0d050c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I just wonder how it worked before, when there was:
if (abort or self.data.exit_first and
result.result not in (ResultOutcome.PASS, ResultOutcome.INFO)):
and now we're iterating for result in invocation.results
. Was that a bug?
I believe it was a bug, because it was checking if abort:
for result in invocation.results:
# In case of aborted all results in list will be aborted
result.note = 'aborted'
...
for result in invocation.results:
logger.verbose(
f"{_format_duration(result)} {result.show()} [{progress}]",
shift=shift)
...
if (abort or self.data.exit_first and
result.result not in (ResultOutcome.PASS, ResultOutcome.INFO)): So only the last result was considered, which does not seem right. |
/packit test |
Similar to reboot detection, hiding the details from individual execution plugins.
e0d050c
to
24ed894
Compare
Similar to reboot detection, hiding the details from individual execution plugins.
Similar to reboot detection, hiding the details from individual execution plugins.
Similar to reboot detection, hiding the details from individual execution plugins.
Similar to reboot detection, hiding the details from individual execution plugins.
Pull Request Checklist