Defer check for SuperGrubDisk so that more specific distro checks take precedence.

Improved a comment.
pull/402/head
Shinji Suzuki 6 years ago
parent 2b86aee655
commit 2b40966081

@ -81,7 +81,6 @@ def distro(iso_cfg_ext_dir, iso_link, expose_exception=False):
# Sorry you can't include | in a keyword for now.
test_vector = [
('ubcd', contains('ubcd')),
('sgrubd2', contains('Super Grub Disk')),
('hbcd', contains('hbcd')),
('systemrescuecd', contains('systemrescuecd')),
('parted-magic', [contains('pmagic|partedmagic'),
@ -144,11 +143,12 @@ def distro(iso_cfg_ext_dir, iso_link, expose_exception=False):
('rising-av', contains('BOOT_IMAGE=rising')),
('Avira-RS', contains('Avira Rescue System')),
('insert', contains('BOOT_IMAGE=insert')),
('sgrubd2', contains('Super Grub Disk')),
]
# I'm not sure if this check is necessary prvious but code had skipped
# keyword based checks if the platform is unknown.
# I'm not sure if this platform check is necessary but I will
# avoid removal to not alter the behaviour.
if platform.system() == "Linux" or platform.system() == "Windows":
for path, subdirs, files in os.walk(iso_cfg_ext_dir):
for name in files:

Loading…
Cancel
Save