mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 00:46:01 +03:00
Fix test for Qemu boot priority. Fixes #2548.
This commit is contained in:
@@ -265,7 +265,7 @@ class Config:
|
||||
else:
|
||||
new_config["qemu_path"] = "qemu-system-{}".format(appliance_config["qemu"]["arch"])
|
||||
|
||||
if "boot_priority" in appliance_config:
|
||||
if "boot_priority" in appliance_config["qemu"]:
|
||||
new_config["boot_priority"] = appliance_config["qemu"]["boot_priority"]
|
||||
|
||||
if "first_port_name" in appliance_config:
|
||||
|
||||
@@ -343,7 +343,7 @@ def test_add_appliance_with_boot_priority(empty_config, linux_microcore_img):
|
||||
"path": linux_microcore_img
|
||||
}
|
||||
]
|
||||
config["boot_priority"] = "dc"
|
||||
config["qemu"]["boot_priority"] = "dc"
|
||||
empty_config.add_appliance(config, "local")
|
||||
assert empty_config._config["Qemu"]["vms"][0]["boot_priority"] == "dc"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user