Skip to content

Commit

Permalink
Chore: harness tests don't show expected 'integration tests' mode logs (
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Aug 13, 2023
1 parent 3e55ad5 commit a5b090b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,13 @@ func terraformCommand(testName string, arg ...string) ([]byte, error) {
cmd.Dir = TESTS_FOLDER + "/" + testName
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, "INTEGRATION_TESTS=1")
cmd.Env = append(cmd.Env, "TF_LOG_PROVIDER=info")
log.Println("Running terraform ", arg, " in ", testName)
outputBytes, err := cmd.CombinedOutput()
output := string(outputBytes)
log.Println(output)
if err != nil {
log.Println("error running terraform ", arg, " in ", testName, " error: ", err, " output: ", output)
log.Println("error running terraform ", arg, " in ", testName, " error: ", err)
} else {
log.Println("Completed successfully terraform", arg, "in", testName)
}
Expand Down

0 comments on commit a5b090b

Please sign in to comment.