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

add support for address in memory target #3802

Conversation

nanli1
Copy link
Contributor

@nanli1 nanli1 commented Nov 23, 2023

Need address attr in Memory.target class

For autotest/tp-libvirt#5293

@@ -113,6 +114,11 @@ def __init__(self, virsh_instance=base.base.virsh):
'virsh_instance': virsh_instance})
accessors.XMLElementBool('readonly', self, parent_xpath='/',
tag_name='readonly')
accessors.XMLElementNest('address', self, parent_xpath='/',
tag_name='address', subclass=Memory().Address,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
tag_name='address', subclass=Memory().Address,
tag_name='address', subclass=Memory.Address,

Would this way also work? Therefore we might not need to instantiate Memory class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes , it works. Thanks haijiao : D

Copy link
Contributor

Choose a reason for hiding this comment

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

Great! np!

@nanli1 nanli1 force-pushed the add_support_for_address_in_mem_target branch from e6a3eea to 77568d9 Compare December 7, 2023 02:37
@nanli1 nanli1 requested a review from chloerh December 7, 2023 02:39
Copy link
Contributor

@cliping cliping left a comment

Choose a reason for hiding this comment

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

LGTM

@chloerh chloerh merged commit 7050669 into avocado-framework:master Dec 7, 2023
49 checks passed
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.

3 participants