Merge pull request #28741 from keszybz/minor-tweaks-for-recent-patches

Minor tweaks for recent patches
This commit is contained in:
Yu Watanabe
2023-08-10 08:45:44 +09:00
committed by GitHub
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ def initrd_list(opts) -> list[Path]:
microcode = sorted(opts.staging_area.glob('microcode/*'))
initrd = sorted(opts.staging_area.glob('initrd*'))
#Order taken from 90-loaderentry.install
# Order taken from 90-loaderentry.install
return [*microcode, *opts.initrd, *initrd]
+1 -3
View File
@@ -144,10 +144,8 @@ def test_apply_config(tmp_path):
assert ns.phase_path_groups == [['enter-initrd:leave-initrd:sysinit:ready:shutdown:final']]
def test_parse_args_minimal():
try:
with pytest.raises(ValueError):
ukify.parse_args([])
except ValueError as e:
print(f'expected failure: {e}')
opts = ukify.parse_args('arg1 arg2'.split())
assert opts.linux == pathlib.Path('arg1')