@@ -77,7 +77,7 @@ class TestNested:
77
77
cd_vbd = dict (device = "xvdd" , userdevice = "3" ),
78
78
vifs = [dict (index = 0 , network_name = NETWORKS ["MGMT" ])],
79
79
))
80
- @pytest .mark .answerfile (
80
+ @pytest .mark .answerfile . with_args (
81
81
lambda install_disk , local_sr , package_source , iso_version : AnswerFile ("INSTALL" )
82
82
.top_setattr ({} if local_sr == "nosr" else {"sr-type" : local_sr })
83
83
.top_append (
@@ -109,7 +109,7 @@ def test_install(self, vm_booted_with_installer, install_disk,
109
109
"xs70" ,
110
110
))
111
111
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
112
- @pytest .mark .continuation_of (
112
+ @pytest .mark .continuation_of . with_args (
113
113
lambda version , firmware , local_sr , package_source : [dict (
114
114
vm = "vm1" ,
115
115
image_test = f"TestNested::test_install[{ firmware } -{ version } -{ package_source } -{ local_sr } ]" )])
@@ -243,6 +243,7 @@ def _test_firstboot(self, create_vms, mode, *, machine='DEFAULT', is_restore=Fal
243
243
raise AssertionError (f"Unhandled LSB release { lsb_rel !r} " )
244
244
# check for firstboot issues
245
245
# FIXME: flaky, must check logs extraction on failure
246
+ stamp = ''
246
247
try :
247
248
for stamp in sorted (STAMPS ):
248
249
wait_for (lambda : pool .master .ssh (["test" , "-e" , f"{ STAMPS_DIR } /{ stamp } " ],
@@ -300,7 +301,7 @@ def _test_firstboot(self, create_vms, mode, *, machine='DEFAULT', is_restore=Fal
300
301
"xs70" ,
301
302
))
302
303
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
303
- @pytest .mark .continuation_of (
304
+ @pytest .mark .continuation_of . with_args (
304
305
lambda firmware , version , machine , local_sr , package_source : [
305
306
dict (vm = "vm1" ,
306
307
image_test = ("TestNested::test_tune_firstboot"
@@ -327,11 +328,11 @@ def test_boot_inst(self, create_vms,
327
328
("821.1" , "821.1" ),
328
329
])
329
330
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
330
- @pytest .mark .continuation_of (
331
+ @pytest .mark .continuation_of . with_args (
331
332
lambda firmware , orig_version , machine , package_source , local_sr : [dict (
332
333
vm = "vm1" ,
333
334
image_test = f"TestNested::test_boot_inst[{ firmware } -{ orig_version } -{ machine } -{ package_source } -{ local_sr } ]" )])
334
- @pytest .mark .answerfile (
335
+ @pytest .mark .answerfile . with_args (
335
336
lambda install_disk , package_source , iso_version : AnswerFile ("UPGRADE" ).top_append (
336
337
{"TAG" : "source" , "type" : "local" } if package_source == "iso"
337
338
else {"TAG" : "source" , "type" : "url" ,
@@ -363,7 +364,7 @@ def test_upgrade(self, vm_booted_with_installer, install_disk,
363
364
"821.1-821.1" ,
364
365
))
365
366
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
366
- @pytest .mark .continuation_of (
367
+ @pytest .mark .continuation_of . with_args (
367
368
lambda firmware , mode , machine , package_source , local_sr : [dict (
368
369
vm = "vm1" ,
369
370
image_test = (f"TestNested::test_upgrade[{ firmware } -{ mode } -{ machine } -{ package_source } -{ local_sr } ]" ))])
@@ -388,7 +389,7 @@ def test_boot_upg(self, create_vms,
388
389
("821.1-821.1" , "821.1" ),
389
390
])
390
391
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
391
- @pytest .mark .continuation_of (
392
+ @pytest .mark .continuation_of . with_args (
392
393
lambda firmware , orig_version , local_sr , package_source : [dict (
393
394
vm = "vm1" ,
394
395
image_test = f"TestNested::test_boot_upg[{ firmware } -{ orig_version } -host1-{ package_source } -{ local_sr } ]" )])
@@ -419,7 +420,7 @@ def test_restore(self, vm_booted_with_installer, install_disk,
419
420
"821.1-821.1-821.1" ,
420
421
))
421
422
@pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
422
- @pytest .mark .continuation_of (
423
+ @pytest .mark .continuation_of . with_args (
423
424
lambda firmware , mode , package_source , local_sr : [dict (
424
425
vm = "vm1" ,
425
426
image_test = (f"TestNested::test_restore[{ firmware } -{ mode } -{ package_source } -{ local_sr } ]" ))])
0 commit comments