@@ -10,7 +10,8 @@ import sys
10
10
# Just test these boot to start with. In the future we should at least
11
11
# do ostree upgrades with uefi etc. But we don't really need the *full*
12
12
# suite...if podman somehow broke with nvme or uefi I'd be amazed and impressed.
13
- BASIC_SCENARIOS = ["nvme=true" , "firmware=uefi" , "firmware=uefi-secure" ]
13
+ BASIC_SCENARIOS = ["nvme=true" , "firmware=uefi" ]
14
+ BASIC_SCENARIOS_SECURE_BOOT = ["firmware=uefi-secure" ]
14
15
arch = platform .machine ()
15
16
16
17
cosa_dir = os .path .dirname (os .path .abspath (__file__ ))
@@ -25,6 +26,7 @@ parser = argparse.ArgumentParser()
25
26
parser .add_argument ("--build" , help = "Build ID" )
26
27
parser .add_argument ("--basic-qemu-scenarios" , help = "Run the basic test across uefi-secure,nvme etc." , action = 'store_true' )
27
28
parser .add_argument ("--output-dir" , help = "Output directory" )
29
+ parser .add_argument ("--skip-secure-boot" , help = "Use with '--basic-qemu-scenarios' to skip the Secure Boot tests" , action = 'store_true' )
28
30
parser .add_argument ("--upgrades" , help = "Run upgrade tests" , action = 'store_true' )
29
31
parser .add_argument ("subargs" , help = "Remaining arguments for kola" , nargs = '*' ,
30
32
default = [])
@@ -63,6 +65,11 @@ if args.basic_qemu_scenarios:
63
65
subargs = kolaargs + ['--qemu-' + scenario , 'basic' ]
64
66
print (subprocess .list2cmdline (subargs ), flush = True )
65
67
subprocess .check_call (subargs )
68
+ if not args .skip_secure_boot :
69
+ for scenario in BASIC_SCENARIOS_SECURE_BOOT :
70
+ subargs = kolaargs + ['--qemu-' + scenario , 'basic' ]
71
+ print (subprocess .list2cmdline (subargs ), flush = True )
72
+ subprocess .check_call (subargs )
66
73
else :
67
74
# Basic qemu scenarios using nvme and uefi
68
75
# are not supported on multi-arch
0 commit comments