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 module virtadmin #766

Merged
merged 1 commit into from
Jan 10, 2017
Merged

Conversation

iccaszhulili
Copy link
Contributor

In order to automate the test case of the new feature virt-admin, I have
added module virtadmin.


if readonly:
logging.error("readonly mode is not supported by virt-admin yet.")
self.virtadmin_exec += " -r"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does virt-admin support 'readonly' feature?

# logging.debug("Persistent virtadmin session is not responding, "
# "libvirtd may be dead.")
# self.auto_close = True
# raise aexpect.ShellStatusError(virtadmin_exec, 'list')
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove these codes If they are usless

return 0, out

def cmd_result(self, cmd, ignore_status=False, debug=False, timeout=60):
"""Mimic process.run()"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to complete this docsting

@iccaszhulili
Copy link
Contributor Author

@will-Do I have modified the file according to your comments. Please help me review it. Thanks very much.

In order to automate the test case of the new feature virt-admin, I have
added module virt_admin. And also add all commands related to virt-admin
into this virt_admin.py.

Signed-off-by: Lily Zhu <[email protected]>
@will-Do
Copy link
Contributor

will-Do commented Jan 10, 2017

As no more concern about this new module, and it only used for virt-admin related cases for now, I'm going to merge it.

@will-Do will-Do merged commit 71f3e0d into avocado-framework:master Jan 10, 2017
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