From ab7bea19135a5f87b7d40337b465d400f20561de Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Thu, 17 Oct 2024 12:42:24 +0200 Subject: [PATCH] test: improve logging around `TestAgentScript` --- provisionersdk/agent_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/provisionersdk/agent_test.go b/provisionersdk/agent_test.go index 60a973c740340..5dbdc41a89cd2 100644 --- a/provisionersdk/agent_test.go +++ b/provisionersdk/agent_test.go @@ -123,7 +123,10 @@ func TestAgentScript(t *testing.T) { } // Kill the command, wait for the command to yield. - require.NoError(t, cmd.Cancel()) + err := cmd.Cancel() + if err != nil { + t.Fatalf("unable to cancel the command, see logs:\n%s", output.String()) + } wg.Wait() t.Log(output.String())