Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
Signed-off-by: James Peach <[email protected]>
  • Loading branch information
jpeach committed Sep 7, 2021
1 parent 8a79e54 commit 9b2f5ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/shell/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,14 @@ func readData(t testing.TestingT, log *logger.Logger, reader *bufio.Reader, writ
break
}

// logger.Logger has a Logf method, but not a Log method.
// We have to use the format string indirection to avoid
// interpreting any possible formatting characters in
// the line.
//
// See https://github.com/gruntwork-io/terratest/issues/982.
log.Logf(t, "%s", line)

if _, err := writer.WriteString(line); err != nil {
return err
}
Expand Down

0 comments on commit 9b2f5ad

Please sign in to comment.