Skip to content

Commit 6dbff35

Browse files
committed
silent warning
1 parent 5b4a720 commit 6dbff35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/e2e/e2e_helper.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ import (
1212
)
1313

1414
func RunTF(args ...string) (string, error) {
15+
// Ensure Atlas CLI storage warning is silenced before running tests as it is not enabled in GitHub Actions
16+
exec.Command("atlas", "config", "set", "silence_storage_warning", "true").Run()
17+
1518
args = append([]string{"tf"}, args...)
1619
cmd := exec.CommandContext(context.Background(), "atlas", args...)
17-
// Silence the storage warning that appears in CI environments
18-
cmd.Env = append(os.Environ(), "ATLAS_SILENCE_STORAGE_WARNING=true")
1920
resp, err := cmd.CombinedOutput()
2021
return string(resp), err
2122
}

0 commit comments

Comments
 (0)