tests: add fake-win-multi.iso and test it

This has ambiguous volume labels that will match multiple
osinfo output:

$ osinfo-detect -a tests/data/fakemedia/fake-win-multi.iso
Media is bootable.

Generated by editing `fake-win7.iso` already in tree

$ xorriso -indev fake-win7.iso -outdev test.iso \
    -boot_image isolinux keep \
    -volid SSS_X64CHK_ -volset_id SSS_X64CHK_

Add a simple test case that confirms _some_ os was detected,
and virt-install doesn't totally choke on it

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2024-09-07 14:23:00 -04:00
parent f4a9722dc6
commit 9ec9c400f4
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -1076,6 +1076,7 @@ c.add_compare("--reinstall test-cdrom --cdrom %(ISO-WIN7)s --unattended", "reins
c.add_invalid("--reinstall test --cdrom %(ISO-WIN7)s", grep="already active") # trying to reinstall an active VM should fail
c.add_invalid("--reinstall test --osinfo none", grep="install method must be specified") # missing install method
c.add_valid("--osinfo list", grep="osinfo-query os") # --osinfo list
c.add_valid(f"--cdrom {MEDIA_DIR}/fake-win-multi.iso --disk none ") # verify media that matches multi OS doesn't blow up.
####################