@@ -127,25 +127,25 @@ def test_install_uefi(self, request, version, iso_remaster, create_vms):
127
127
@pytest .mark .usefixtures ("xcpng_chained" )
128
128
@pytest .mark .parametrize ("mode" , [
129
129
pytest .param ("821.1" , marks = [
130
- pytest .mark .continuation_of (dict (vm = "vm 1" ,
131
- test = "TestNested::test_install_uefi[821.1]" )),
130
+ pytest .mark .continuation_of ([ dict (vm = "vm 1" ,
131
+ test = "TestNested::test_install_uefi[821.1]" )] ),
132
132
]),
133
133
pytest .param ("821.1_821.1" , marks = [
134
- pytest .mark .continuation_of (dict (vm = "vm 1" ,
135
- test = "TestNested::test_upgrade_uefi[821.1-821.1]" )),
134
+ pytest .mark .continuation_of ([ dict (vm = "vm 1" ,
135
+ test = "TestNested::test_upgrade_uefi[821.1-821.1]" )] ),
136
136
]),
137
137
pytest .param ("821.1_83b2" , marks = [
138
- pytest .mark .continuation_of (dict (vm = "vm 1" ,
139
- test = "TestNested::test_upgrade_uefi[821.1-83b2]" )),
138
+ pytest .mark .continuation_of ([ dict (vm = "vm 1" ,
139
+ test = "TestNested::test_upgrade_uefi[821.1-83b2]" )] ),
140
140
]),
141
141
pytest .param ("83b2" , marks = [
142
- pytest .mark .continuation_of (dict (vm = "vm 1" ,
143
- test = "TestNested::test_install_uefi[83b2]" )),
142
+ pytest .mark .continuation_of ([ dict (vm = "vm 1" ,
143
+ test = "TestNested::test_install_uefi[83b2]" )] ),
144
144
]),
145
145
# 8.3b2 disabled the upgrade from 8.3
146
146
#pytest.param("83b2_83b2", marks=[
147
- # pytest.mark.continuation_of(dict(vm="vm 1",
148
- # test="TestNested::test_upgrade_uefi[83b2-83b2]")),
147
+ # pytest.mark.continuation_of([ dict(vm="vm 1",
148
+ # test="TestNested::test_upgrade_uefi[83b2-83b2]")] ),
149
149
#]),
150
150
])
151
151
def test_firstboot_uefi (self , request , create_vms , mode ):
@@ -249,20 +249,13 @@ def test_firstboot_uefi(self, request, create_vms, mode):
249
249
250
250
@pytest .mark .usefixtures ("xcpng_chained" )
251
251
@pytest .mark .parametrize (("orig_version" , "version" ), [
252
- pytest .param ("821.1" , "821.1" , marks = [
253
- pytest .mark .continuation_of (dict (vm = "vm 1" ,
254
- test = "TestNested::test_firstboot_uefi[821.1]" )),
255
- ]),
256
- pytest .param ("821.1" , "83b2" , marks = [
257
- pytest .mark .continuation_of (dict (vm = "vm 1" ,
258
- test = "TestNested::test_firstboot_uefi[821.1]" )),
259
- ]),
260
- # 8.3b2 disabled the upgrade from 8.3
261
- #pytest.param("83b2", "83b2", marks=[
262
- # pytest.mark.continuation_of(dict(vm="vm 1",
263
- # test="TestNested::test_firstboot_uefi[83b2]")),
264
- #]),
252
+ ("821.1" , "821.1" ),
253
+ ("821.1" , "83b2" ),
254
+ #("83b2", "83b2"), # 8.3b2 disabled the upgrade from 8.3
265
255
])
256
+ @pytest .mark .continuation_of (
257
+ lambda orig_version : [dict (vm = "vm 1" ,
258
+ test = f"TestNested::test_firstboot_uefi[{ orig_version } ]" )])
266
259
@pytest .mark .answerfile (
267
260
{
268
261
"base" : "UPGRADE" ,
@@ -271,7 +264,7 @@ def test_firstboot_uefi(self, request, create_vms, mode):
271
264
})
272
265
@pytest .mark .installer_iso (lambda version : {"821.1" : "xcpng-8.2.1-2023" ,
273
266
"83b2" : "xcpng-8.3-beta2" }[version ])
274
- def test_upgrade_uefi (self , request , iso_remaster , create_vms , orig_version , version ):
267
+ def test_upgrade_uefi (self , request , orig_version , version , iso_remaster , create_vms ):
275
268
host_vm = create_vms [0 ]
276
269
vif = host_vm .vifs ()[0 ]
277
270
mac_address = vif .param_get ('MAC' )
0 commit comments