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

tests: Skip tests with unsupported MR access flags #790

Merged
merged 1 commit into from Jul 15, 2020

Conversation

gal-pressman
Copy link
Contributor

The shared PD test triggers a flow that tries to create an MR through
QpExRCRDMAWrite class with access flags that might not be supported on
some devices, skip the test in that case.

Signed-off-by: Gal Pressman galpress@amazon.com

self.mr = u.create_custom_mr(self, e.IBV_ACCESS_REMOTE_WRITE)
try:
access_flags = e.IBV_ACCESS_REMOTE_WRITE
self.mr = u.create_custom_mr(self, access_flags)
Copy link
Contributor

Choose a reason for hiding this comment

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

hm.. why not to include this try-catch check inside the create_custom_mr itself?
This will cover all current/future similar scenarios that call create_custom_mr.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

The shared PD test triggers a flow that tries to create an MR through
QpExRCRDMAWrite class with access flags that might not be supported on
some devices, skip the test in that case.

Signed-off-by: Gal Pressman <galpress@amazon.com>
@rleon rleon merged commit bed45e6 into linux-rdma:master Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants