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