Skip to content

Commit

Permalink
[guest-test] Test Enhance: drop bios_img in case not provided
Browse files Browse the repository at this point in the history
drop bios_img and use default QEMU install BIOS such as seabios file, in
case bios_img is not prodived in common.json

[Test Components] guest-test
[Test Types] any
[Supported Devices] all-generic

Signed-off-by: Hongyu Ning <[email protected]>
  • Loading branch information
hongyuni authored and ysun committed Jan 19, 2024
1 parent 1ac58a0 commit 7158254
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion guest-test/qemu_get_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
initrd_img = image_config["initrd_img"]
else:
initrd_img = "not_use"
bios_img = image_config["bios_img"]
if os.path.isfile(image_config["bios_img"]):
bios_img = image_config["bios_img"]
else:
bios_img = "not_use"
qemu_img = image_config["qemu_img"]
guest_img = image_config["guest_img"]
guest_img_format = image_config["guest_img_format"]
Expand Down

0 comments on commit 7158254

Please sign in to comment.