@@ -48,7 +48,7 @@ services:
4848 t .Fatalf ("Failed to parse azure.yaml: %v" , err )
4949 }
5050
51- err = executePrerunHook (azureYaml , tmpDir )
51+ err = executePrerunHook (context . Background (), azureYaml , tmpDir )
5252 if err != nil {
5353 t .Errorf ("Expected prerun hook to succeed, got error: %v" , err )
5454 }
@@ -91,7 +91,7 @@ services:
9191 t .Fatalf ("Failed to parse azure.yaml: %v" , err )
9292 }
9393
94- err = executePrerunHook (azureYaml , tmpDir )
94+ err = executePrerunHook (context . Background (), azureYaml , tmpDir )
9595 if err == nil {
9696 t .Error ("Expected prerun hook to fail, but it succeeded" )
9797 }
@@ -134,7 +134,7 @@ services:
134134 t .Fatalf ("Failed to parse azure.yaml: %v" , err )
135135 }
136136
137- err = executePrerunHook (azureYaml , tmpDir )
137+ err = executePrerunHook (context . Background (), azureYaml , tmpDir )
138138 if err != nil {
139139 t .Errorf ("Expected prerun hook to continue on error, got: %v" , err )
140140 }
@@ -174,7 +174,7 @@ services:
174174 t .Fatalf ("Failed to parse azure.yaml: %v" , err )
175175 }
176176
177- err = executePostrunHook (azureYaml , tmpDir )
177+ err = executePostrunHook (context . Background (), azureYaml , tmpDir )
178178 if err != nil {
179179 t .Errorf ("Expected postrun hook to succeed, got error: %v" , err )
180180 }
@@ -217,7 +217,7 @@ services:
217217 t .Fatalf ("Failed to parse azure.yaml: %v" , err )
218218 }
219219
220- err = executePostrunHook (azureYaml , tmpDir )
220+ err = executePostrunHook (context . Background (), azureYaml , tmpDir )
221221 if err == nil {
222222 t .Error ("Expected postrun hook to fail, but it succeeded" )
223223 }
@@ -245,12 +245,12 @@ services:
245245 }
246246
247247 // Should not error when no hooks configured
248- err = executePrerunHook (azureYaml , tmpDir )
248+ err = executePrerunHook (context . Background (), azureYaml , tmpDir )
249249 if err != nil {
250250 t .Errorf ("Expected no error when hooks not configured, got: %v" , err )
251251 }
252252
253- err = executePostrunHook (azureYaml , tmpDir )
253+ err = executePostrunHook (context . Background (), azureYaml , tmpDir )
254254 if err != nil {
255255 t .Errorf ("Expected no error when hooks not configured, got: %v" , err )
256256 }
@@ -492,7 +492,7 @@ services:
492492 }
493493
494494 // Execute prerun hook - it should have access to environment variables
495- err = executePrerunHook (azureYaml , tmpDir )
495+ err = executePrerunHook (context . Background (), azureYaml , tmpDir )
496496 if err != nil {
497497 t .Logf ("Hook execution error (may be platform-specific): %v" , err )
498498 // Don't fail the test - the environment variable logic may vary by platform
@@ -546,7 +546,7 @@ services:
546546
547547 done := make (chan error , 1 )
548548 go func () {
549- done <- executePrerunHook (azureYaml , tmpDir )
549+ done <- executePrerunHook (context . Background (), azureYaml , tmpDir )
550550 }()
551551
552552 select {
@@ -600,7 +600,7 @@ services:
600600 }
601601
602602 // Execute prerun hook - should use platform-specific command
603- err = executePrerunHook (azureYaml , tmpDir )
603+ err = executePrerunHook (context . Background (), azureYaml , tmpDir )
604604 if err != nil {
605605 t .Errorf ("Expected platform-specific hook to succeed, got error: %v" , err )
606606 }
0 commit comments