Skip to content

Conversation

@saijanani-c
Copy link

Added validation to ensure lsslot -ac pci runs successfully and returns exit status 0

@Naresh-ibm Naresh-ibm self-assigned this Oct 9, 2025
if self.run_cmd_out("lspci"):
self.run_cmd_out("lsslot -ac pci")
result = self.run_cmd("lsslot -ac pci", ignore_status=True)
self.assertEqual(result.exit_status, 0, "lsslot -ac pci failed")
Copy link
Collaborator

Choose a reason for hiding this comment

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

@saijanani-c I feel just command return code is not enough and we need the validation of the command output.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@saijanani-c any update on this PR?

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