Skip to content

Commit cb1d2c6

Browse files
authored
chore: better logging in e2e tests when VHD doesn't exist (#5912)
1 parent 676b757 commit cb1d2c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/scenario_helpers_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ func maybeSkipScenario(ctx context.Context, t *testing.T, s *Scenario) {
180180
vhd, err := s.VHD.VHDResourceID(ctx, t)
181181
if err != nil {
182182
if config.Config.IgnoreScenariosWithMissingVHD && errors.Is(err, config.ErrNotFound) {
183-
t.Skipf("skipping scenario %q: could not find image", t.Name())
183+
t.Skipf("skipping scenario %q: could not find image for VHD %s due to %s", t.Name(), s.VHD.String(), err)
184184
} else {
185-
t.Fatalf("could not find image for %q: %s", t.Name(), err)
185+
t.Fatalf("could not find image for %q (VHD %s): %s", t.Name(), s.VHD.String(), err)
186186
}
187187
}
188188
t.Logf("VHD: %q, TAGS %+v", vhd, s.Tags)

0 commit comments

Comments
 (0)