From 8dbcea988c9f25b38be0226887bdedb57f60e6a4 Mon Sep 17 00:00:00 2001 From: Carter McKinnon Date: Mon, 9 Sep 2024 20:49:00 +0000 Subject: [PATCH] Add debug logging for e2e-nvidia setup --- e2e2/test/cases/nvidia/main_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e2/test/cases/nvidia/main_test.go b/e2e2/test/cases/nvidia/main_test.go index aa170d3ef..33ecde44c 100644 --- a/e2e2/test/cases/nvidia/main_test.go +++ b/e2e2/test/cases/nvidia/main_test.go @@ -75,7 +75,7 @@ func TestMain(m *testing.M) { err := wait.For(conditions.New(config.Client().Resources()).DeploymentConditionMatch(&dep, appsv1.DeploymentAvailable, v1.ConditionTrue), wait.WithContext(ctx)) if err != nil { - return ctx, err + return ctx, fmt.Errorf("failed to deploy mpi-operator: %v", err) } return ctx, nil }, @@ -86,7 +86,7 @@ func TestMain(m *testing.M) { err := wait.For(fwext.NewConditionExtension(config.Client().Resources()).DaemonSetReady(&ds), wait.WithContext(ctx)) if err != nil { - return ctx, err + return ctx, fmt.Errorf("failed to deploy nvidia-device-plugin: %v", err) } return ctx, nil }, @@ -110,7 +110,7 @@ func TestMain(m *testing.M) { err = wait.For(fwext.NewConditionExtension(cfg.Client().Resources()).DaemonSetReady(&ds), wait.WithContext(ctx)) if err != nil { - return ctx, err + return ctx, fmt.Errorf("failed to deploy efa-device-plugin: %v", err) } }