-
Notifications
You must be signed in to change notification settings - Fork 13
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
utils: add Coredumpd #64
Conversation
Collects generated core files from /var/lib/systemd/coredump and if there are any, optionally fail the test.
You will need VM to test this as coredumps produced from with in containers are still stored on the host. There is ongoing work to enable to store the coredump directly in the container, so we'll likely get that in the future as well. |
original_outcome = report.outcome | ||
|
||
# Fail the test if fail mode is selected | ||
if report.outcome == "passed" and self.mode == "fail": |
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.
what is the reason to have if report.outcome == "passed"
here?
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.
If the test passed, we want to switch it to fail, otherwise don't touch the outcome. In theory, the outcome here may only be "passed" or "failed" so this check is redundant. But I added it for verbosity and future safety.
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.
Ack thank you Pavel.
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.
Looks good.
Thank you, Pavel.
Collects generated core files from /var/lib/systemd/coredump and if there
are any, optionally fail the test.