-
Notifications
You must be signed in to change notification settings - Fork 242
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
Add module virtadmin #766
Conversation
54afca4
to
4382ab0
Compare
4382ab0
to
96cf175
Compare
|
||
if readonly: | ||
logging.error("readonly mode is not supported by virt-admin yet.") | ||
self.virtadmin_exec += " -r" |
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.
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') |
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.
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()""" |
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.
Better to complete this docsting
96cf175
to
3237c91
Compare
@will-Do I have modified the file according to your comments. Please help me review it. Thanks very much. |
3237c91
to
06b959b
Compare
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]>
06b959b
to
cdd1335
Compare
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. |
In order to automate the test case of the new feature virt-admin, I have
added module virtadmin.