forked from autotest/tp-libvirt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request autotest#5090 from meinaLi/get_vm
guest_os_booting: change to select vm based on different guest
- Loading branch information
Showing
8 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
# Author: Meina Li <[email protected]> | ||
# | ||
from virttest import libvirt_version | ||
from virttest.libvirt_xml import vm_xml | ||
from virttest.libvirt_xml import xcepts | ||
from virttest.utils_libvirt import libvirt_vmxml | ||
|
@@ -19,12 +20,13 @@ def run(test, params, env): | |
1) Prepare a guest with related firmware feature. | ||
2) Start and boot the guest. | ||
""" | ||
vm_name = params.get("main_vm") | ||
vm_name = guest_os.get_vm(params) | ||
firmware_dict = eval(params.get("firmware_dict", "{}")) | ||
firmware_xpath = eval(params.get("firmware_xpath", "[]")) | ||
error_msg = params.get("error_msg", "") | ||
firmware_type = params.get("firmware_type") | ||
status_error = "yes" == params.get("status_error", "no") | ||
libvirt_version.is_libvirt_feature_supported(params) | ||
|
||
vm = env.get_vm(vm_name) | ||
vmxml = vm_xml.VMXML.new_from_inactive_dumpxml(vm_name) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
# Author: Meina Li <[email protected]> | ||
# | ||
from virttest import libvirt_version | ||
from virttest.libvirt_xml import vm_xml | ||
from virttest.libvirt_xml import xcepts | ||
from virttest.utils_libvirt import libvirt_bios | ||
|
@@ -21,13 +22,14 @@ def run(test, params, env): | |
1) Prepare a guest with related smm elements. | ||
2) Start and boot the guest. | ||
""" | ||
vm_name = params.get("main_vm") | ||
vm_name = guest_os.get_vm(params) | ||
smm_state = params.get("smm_state") | ||
smm_tseg_size = params.get("smm_tseg_size", "") | ||
smm_xpath = eval(params.get("smm_xpath", "{}")) | ||
error_msg = params.get("error_msg") | ||
firmware_type = params.get("firmware_type") | ||
loader_dict = eval(params.get("loader_dict", "{}")) | ||
libvirt_version.is_libvirt_feature_supported(params) | ||
|
||
vm = env.get_vm(vm_name) | ||
vmxml = vm_xml.VMXML.new_from_inactive_dumpxml(vm_name) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters