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

Update func set_graphics_attr #3727

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Conversation

hs0210
Copy link
Contributor

@hs0210 hs0210 commented Jul 26, 2023

The current set_graphics_attr() can only handle the situation where the graphics device itself exists in the original xmltree.

Update the func so that it can also handle the situation where the graphics does not exist in the original xmltree.

Before:

 (1/2) type_specific.io-github-autotest-libvirt.save_and_restore.save_image_dumpxml.readonly.no_opt: ERROR: list index out of range (4.37 s)
 (2/2) type_specific.io-github-autotest-libvirt.save_and_restore.save_image_dumpxml.readonly.security_info_opt: ERROR: list index out of range (4.40 s)

After:

 (1/2) type_specific.io-github-autotest-libvirt.save_and_restore.save_image_dumpxml.readonly.no_opt: PASS (26.23 s)
 (2/2) type_specific.io-github-autotest-libvirt.save_and_restore.save_image_dumpxml.readonly.security_info_opt: PASS (26.81 s)

The current set_graphics_attr() can only handle the situation
where the graphics device itself exists in the original xmltree.

Update the func so that it can also handle the situation where the
graphics does not exist in the original xmltree.

Signed-off-by: Hu Shuai <[email protected]>
@chloerh chloerh merged commit 52a0548 into avocado-framework:master Jul 26, 2023
33 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants