From f1dfc56403226341a8ff2d9f444cfce3859c8f97 Mon Sep 17 00:00:00 2001 From: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:13:08 -0700 Subject: [PATCH] Revert change to collect process dump after every test (#5794) (cherry picked from commit 395c65c5fe9c742bcc1cb77003ff1943a822401c) --- pkg/testing/fixture_install.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/testing/fixture_install.go b/pkg/testing/fixture_install.go index b7cf9847ab1..8bf833bbeab 100644 --- a/pkg/testing/fixture_install.go +++ b/pkg/testing/fixture_install.go @@ -238,7 +238,9 @@ func (f *Fixture) installNoPkgManager(ctx context.Context, installOpts *InstallO f.setClient(c) f.t.Cleanup(func() { - f.DumpProcesses("-post-uninstall") + if f.t.Failed() { + f.DumpProcesses("-cleanup") + } }) f.t.Cleanup(func() {