@@ -77,7 +77,7 @@ class TestNested:
7777 cd_vbd = dict (device = "xvdd" , userdevice = "3" ),
7878 vifs = [dict (index = 0 , network_name = NETWORKS ["MGMT" ])],
7979 ))
80- @pytest .mark .answerfile (
80+ @pytest .mark .answerfile . with_args (
8181 lambda install_disk , local_sr , package_source , iso_version : AnswerFile ("INSTALL" )
8282 .top_setattr ({} if local_sr == "nosr" else {"sr-type" : local_sr })
8383 .top_append (
@@ -109,7 +109,7 @@ def test_install(self, vm_booted_with_installer, install_disk,
109109 "xs70" ,
110110 ))
111111 @pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
112- @pytest .mark .continuation_of (
112+ @pytest .mark .continuation_of . with_args (
113113 lambda version , firmware , local_sr , package_source : [dict (
114114 vm = "vm1" ,
115115 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
243243 raise AssertionError (f"Unhandled LSB release { lsb_rel !r} " )
244244 # check for firstboot issues
245245 # FIXME: flaky, must check logs extraction on failure
246+ stamp = ''
246247 try :
247248 for stamp in sorted (STAMPS ):
248249 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
300301 "xs70" ,
301302 ))
302303 @pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
303- @pytest .mark .continuation_of (
304+ @pytest .mark .continuation_of . with_args (
304305 lambda firmware , version , machine , local_sr , package_source : [
305306 dict (vm = "vm1" ,
306307 image_test = ("TestNested::test_tune_firstboot"
@@ -327,11 +328,11 @@ def test_boot_inst(self, create_vms,
327328 ("821.1" , "821.1" ),
328329 ])
329330 @pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
330- @pytest .mark .continuation_of (
331+ @pytest .mark .continuation_of . with_args (
331332 lambda firmware , orig_version , machine , package_source , local_sr : [dict (
332333 vm = "vm1" ,
333334 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 (
335336 lambda install_disk , package_source , iso_version : AnswerFile ("UPGRADE" ).top_append (
336337 {"TAG" : "source" , "type" : "local" } if package_source == "iso"
337338 else {"TAG" : "source" , "type" : "url" ,
@@ -363,7 +364,7 @@ def test_upgrade(self, vm_booted_with_installer, install_disk,
363364 "821.1-821.1" ,
364365 ))
365366 @pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
366- @pytest .mark .continuation_of (
367+ @pytest .mark .continuation_of . with_args (
367368 lambda firmware , mode , machine , package_source , local_sr : [dict (
368369 vm = "vm1" ,
369370 image_test = (f"TestNested::test_upgrade[{ firmware } -{ mode } -{ machine } -{ package_source } -{ local_sr } ]" ))])
@@ -388,7 +389,7 @@ def test_boot_upg(self, create_vms,
388389 ("821.1-821.1" , "821.1" ),
389390 ])
390391 @pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
391- @pytest .mark .continuation_of (
392+ @pytest .mark .continuation_of . with_args (
392393 lambda firmware , orig_version , local_sr , package_source : [dict (
393394 vm = "vm1" ,
394395 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,
419420 "821.1-821.1-821.1" ,
420421 ))
421422 @pytest .mark .parametrize ("firmware" , ("uefi" , "bios" ))
422- @pytest .mark .continuation_of (
423+ @pytest .mark .continuation_of . with_args (
423424 lambda firmware , mode , package_source , local_sr : [dict (
424425 vm = "vm1" ,
425426 image_test = (f"TestNested::test_restore[{ firmware } -{ mode } -{ package_source } -{ local_sr } ]" ))])
0 commit comments