Open TheYorkshireDev opened 2 years ago
Hi,
I think %0A
artifacts are from the wrong interpretation of color output - try to run with terraform options NoColor: true, NoStderr: true
, additionally can be tried to define env variable TF_CLI_ARGS="-no-color"
.
Repeated outputs I think appear because of executed retries - intermediary outputs can be reduced if set Logger: logger.Discard
on terraform.Options
Hi all,
First, I wanted to say
terratest
is an excellent tool and I've really enjoyed learning to use it. I do however have a question around the output ofterratest
specifically in CI.I've been experimenting with testing a module I'm writing that uses
integrations/github
and while setting upterratest
I've noticed that there is what appears to be duplicate output and also newlines rendered as%0A
which I'd prefer not to have in my CI output.For brevity, I've reduced the pipeline to not even call the module and just call
defer terraform.Destroy(t, tfOptions)
which still shows the duplicate output and escaped newlines. If anyone can suggest a way to remove the debug/duplicate output it would be much appreciated. I've included the Test file, CI output (including image) to assist in my explanation.Resources
_defaults_exampletest.go
CI Output
CI Image
Analysis
You can see in the resources above the output appears twice, the second with
::debug::stdout:
. Is there a way to suppress this output?Thanks for any assistance