test: improve logging around TestAgentScript (#15121)

This commit is contained in:
Marcin Tojek
2024-10-17 13:06:34 +02:00
committed by GitHub
parent 5ebc748e94
commit bab17a3556
+4 -1
View File
@@ -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())