From bab17a355662119b649608fc6426e286731ffa00 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Thu, 17 Oct 2024 13:06:34 +0200 Subject: [PATCH] test: improve logging around `TestAgentScript` (#15121) --- 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 60a973c740..5dbdc41a89 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())