From 76f87ec86de93b52b944602d71ac3726ffe5fc82 Mon Sep 17 00:00:00 2001 From: Valeri Pliskin Date: Thu, 28 Nov 2024 09:22:11 +0000 Subject: [PATCH] added cmd.wait to cleanup when running the bare process --- pkg/gpu/testutil/samplebins.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/gpu/testutil/samplebins.go b/pkg/gpu/testutil/samplebins.go index b17a7d0ecc9da..71b039bac6f01 100644 --- a/pkg/gpu/testutil/samplebins.go +++ b/pkg/gpu/testutil/samplebins.go @@ -106,6 +106,7 @@ func runCommandAndPipeOutput(t *testing.T, command []string, args SampleArgs) (c t.Cleanup(func() { if cmd.Process != nil { _ = cmd.Process.Kill() + _ = cmd.Wait() } })