@@ -136,19 +136,24 @@ def test_install_uefi(self, request, iso_remaster, create_vms, version):
136
136
dict (name = "vm 1" , image = "install/test::Nested::install_uefi[821.1]" )),
137
137
]),
138
138
pytest .param ("821.1_821.1" , marks = [
139
- pytest .mark .dependency (depends = ["TestNested::test_upgrade_uefi[821.1]" ]),
139
+ pytest .mark .dependency (depends = ["TestNested::test_upgrade_uefi[821.1-821.1 ]" ]),
140
140
pytest .mark .vm_definitions (
141
- dict (name = "vm 1" , image = "install/test::Nested::upgrade_uefi[821.1]" )),
141
+ dict (name = "vm 1" , image = "install/test::Nested::upgrade_uefi[821.1-821.1]" )),
142
+ ]),
143
+ pytest .param ("821.1_83b2" , marks = [
144
+ pytest .mark .dependency (depends = ["TestNested::test_upgrade_uefi[821.1-83b2]" ]),
145
+ pytest .mark .vm_definitions (
146
+ dict (name = "vm 1" , image = "install/test::Nested::upgrade_uefi[821.1-83b2]" )),
142
147
]),
143
148
pytest .param ("83b2_install" , marks = [
144
149
pytest .mark .dependency (depends = ["TestNested::test_install_uefi[83b2]" ]),
145
150
pytest .mark .vm_definitions (
146
151
dict (name = "vm 1" , image = "install/test::Nested::install_uefi[83b2]" )),
147
152
]),
148
153
pytest .param ("83b2_83b2" , marks = [
149
- pytest .mark .dependency (depends = ["TestNested::test_upgrade_uefi[83b2]" ]),
154
+ pytest .mark .dependency (depends = ["TestNested::test_upgrade_uefi[83b2-83b2 ]" ]),
150
155
pytest .mark .vm_definitions (
151
- dict (name = "vm 1" , image = "install/test::Nested::upgrade_uefi[83b2]" )),
156
+ dict (name = "vm 1" , image = "install/test::Nested::upgrade_uefi[83b2-83b2 ]" )),
152
157
]),
153
158
])
154
159
def test_firstboot_uefi (self , request , create_vms , mode ):
@@ -250,27 +255,33 @@ def test_firstboot_uefi(self, request, create_vms, mode):
250
255
host_vm .host .ssh (["rm -f" , xva_name ])
251
256
host_vm .export (xva_name , "zstd" , use_cache = CACHE_IMPORTED_VM )
252
257
253
- @pytest .mark .parametrize (" version" , [
254
- pytest .param ("821.1" , marks = [
258
+ @pytest .mark .parametrize (( "orig_version" , " version") , [
259
+ pytest .param ("821.1" , "821.1" , marks = [
255
260
pytest .mark .dependency (depends = ["TestNested::test_firstboot_uefi[821.1_install]" ]),
261
+ pytest .mark .vm_definitions (
262
+ dict (name = "vm 1" , image = "install/test::Nested::firstboot_uefi[821.1_install]" )),
256
263
pytest .mark .installer_iso ("xcpng-8.2.1-2023" ),
257
264
]),
258
- pytest .param ("83b2" , marks = [
265
+ pytest .param ("821.1" , "83b2" , marks = [
266
+ pytest .mark .dependency (depends = ["TestNested::test_firstboot_uefi[821.1_install]" ]),
267
+ pytest .mark .vm_definitions (
268
+ dict (name = "vm 1" , image = "install/test::Nested::firstboot_uefi[821.1_install]" )),
269
+ pytest .mark .installer_iso ("xcpng-8.3-beta2" ),
270
+ ]),
271
+ pytest .param ("83b2" , "83b2" , marks = [
259
272
pytest .mark .dependency (depends = ["TestNested::test_firstboot_uefi[83b2_install]" ]),
273
+ pytest .mark .vm_definitions (
274
+ dict (name = "vm 1" , image = "install/test::Nested::firstboot_uefi[83b2_install]" )),
260
275
pytest .mark .installer_iso ("xcpng-8.3-beta2" ),
261
276
]),
262
277
])
263
- @pytest .mark .vm_definitions (
264
- dict (name = "vm 1" ,
265
- image = "install/test::Nested::firstboot_821_uefi[install]"
266
- ))
267
278
@pytest .mark .answerfile (
268
279
{
269
280
"base" : "UPGRADE" ,
270
281
"source" : {"type" : "local" },
271
282
"existing-installation" : {"text" : "nvme0n1" },
272
283
})
273
- def test_upgrade_uefi (self , request , iso_remaster , create_vms , version ):
284
+ def test_upgrade_uefi (self , request , iso_remaster , create_vms , orig_version , version ):
274
285
host_vm = create_vms [0 ]
275
286
vif = host_vm .vifs ()[0 ]
276
287
mac_address = vif .param_get ('MAC' )
0 commit comments