@@ -4261,14 +4261,13 @@ func TestVersionIsInvokedInDifferentDirectory(t *testing.T) {
42614261}
42624262
42634263func TestTerragruntPlanAllOutput (t * testing.T ) {
4264+ t .Parallel ()
4265+
42644266 helpers .CleanupTerraformFolder (t , testFixturePlanOutput )
42654267 tmpEnvPath := helpers .CopyEnvironment (t , testFixturePlanOutput )
42664268
42674269 outDir := filepath .Join (tmpEnvPath , "plans" )
4268- pwd := filepath .Join (tmpEnvPath , testFixturePlanOutput )
4269- t .Chdir (pwd )
4270-
4271- cmd := fmt .Sprintf ("terragrunt plan --all --non-interactive --out-dir %s --working-dir %s " , outDir , "." )
4270+ cmd := fmt .Sprintf ("terragrunt plan --all --non-interactive --out-dir %s --working-dir ./%s " , outDir , testFixturePlanOutput )
42724271 var (
42734272 stdout bytes.Buffer
42744273 stderr bytes.Buffer
@@ -4277,8 +4276,9 @@ func TestTerragruntPlanAllOutput(t *testing.T) {
42774276 err := helpers .RunTerragruntCommand (t , cmd , & stdout , & stderr )
42784277 require .NoError (t , err )
42794278
4280- t .Logf ("STDOUT: %s" , stdout .String ())
4281- t .Logf ("STDERR: %s" , stderr .String ())
4279+ output := stdout .String ()
4280+ errOutput := stderr .String ()
4281+ fmt .Printf ("STDERR is %s.\n STDOUT is %s" , errOutput , output )
42824282
42834283 assert .FileExists (t , filepath .Join (outDir , "vnet" , "tfplan.tfplan" ))
42844284 assert .FileExists (t , filepath .Join (outDir , "resource-group" , "tfplan.tfplan" ))
0 commit comments