-
Notifications
You must be signed in to change notification settings - Fork 168
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
crypto_create_destroy: add checkpoint #5040
Conversation
|
92b8d24
to
3129615
Compare
|
3129615
to
5c069ce
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.
LGTM
`virsh nodedev-dumpxml` didn't list `attr` elements on transient devices. Add checkpoint. Try to destroy on teardown in case checkpoint fails. Signed-off-by: Sebastian Mitterle <[email protected]>
5c069ce
to
f0514f6
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.
Others LGTM
if dev_name: | ||
try: | ||
destroy_nodedev(dev_name) | ||
except: |
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.
Is it better to output any exception details for debugging?
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.
@dzhengfy IMO, not in this case. destroy_nodedev
has debug=True
and after its invocation in the test it's already checked if the device was removed successfully. Here in finally
it's called in case the new checkpoint fails.
Depends on avocado-framework/avocado-vt#3723
virsh nodedev-dumpxml
didn't listattr
elements on transient devices. Add checkpoint.