Skip to content
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

Added testcase for yum update #3411

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Added testcase for yum update #3411

wants to merge 1 commit into from

Conversation

SRIKKANTH
Copy link
Collaborator

There are issues reported during "yum update".

This test case is for capturing them.

Added testcase for yum update
def verify_yum_update(self, node: Node) -> None:
dmesg = node.tools[Dmesg]
if isinstance(node.os, Fedora):
node.execute(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leverage the YumConfigManager tool, and assert exit code.

"yum update -y",
sudo=True,
)
dmesg.get_output(force_run=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get output doesn't fail the test case, if abnormal things happen. Use dmesg.check_kernel_errors or find another way to check the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants