Kubernetes benchmarks profiling: Distinguish error messages.

PiperOrigin-RevId: 700813812
This commit is contained in:
Etienne Perot
2024-11-27 15:02:29 -08:00
committed by gVisor bot
parent e27d27a826
commit 28c50dd77f
@@ -357,10 +357,10 @@ func MaybeSetup(ctx context.Context, t *testing.T, k8sCtx k8sctx.KubernetesConte
defer setupCancel()
ds, err := startOperations(setupCtx, k8sCtx, c, ns, setupCommands)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to start profiling setup operations: %w", err)
}
if err := c.WaitForDaemonset(setupCtx, ds); err != nil {
return nil, err
return nil, fmt.Errorf("failed to wait for daemonset: %w", err)
}
}
return cleanup, nil