From 2c8beeabd3c1814ede5d1d460cbafb316f21485e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 15 Oct 2021 13:20:48 +0300 Subject: Can configure DTail client not to mess with ~/.ssh/known_hosts via env var - this is useful for running unit and integration tests in jenkins --- integrationtests/commandutils.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'integrationtests/commandutils.go') diff --git a/integrationtests/commandutils.go b/integrationtests/commandutils.go index b448153..23b9c37 100644 --- a/integrationtests/commandutils.go +++ b/integrationtests/commandutils.go @@ -22,16 +22,17 @@ func runCommand(ctx context.Context, t *testing.T, stdoutFile, cmdStr string, return 0, fmt.Errorf("no such executable '%s', please compile first: %v", cmdStr, err) } + t.Log("Creating stdout file", stdoutFile) fd, err := os.Create(stdoutFile) if err != nil { return 0, nil } defer fd.Close() - t.Log(cmdStr, strings.Join(args, " ")) + t.Log("Running command", cmdStr, strings.Join(args, " ")) cmd := exec.CommandContext(ctx, cmdStr, args...) out, err := cmd.CombinedOutput() - + t.Log("Done running command!", err) fd.Write(out) return exitCodeFromError(err), err -- cgit v1.2.3