Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: show debug logs on error #1009

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion e2e/internal/contrasttest/contrasttest.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,10 @@ func (ct *ContrastTest) runAgainstCoordinator(ctx context.Context, cmd *cobra.Co
return fmt.Errorf("waiting for port-forwarder-coordinator: %w", err)
}

// Make the subcommand aware of the persistent flag.
// Make the subcommand aware of the persistent flags.
// Do it outside the closure because declaring a flag twice panics.
cmd.Flags().String("workspace-dir", "", "")
cmd.Flags().String("log-level", "debug", "")

return ct.Kubeclient.WithForwardedPort(ctx, ct.Namespace, "port-forwarder-coordinator", "1313", func(addr string) error {
commonArgs := append(ct.commonArgs(),
Expand Down