Skip to content

Commit 1803a8c

Browse files
committed
change skip env var name because terratest would change it's behavior when a env var named SKIP_XXX has been set
1 parent d95b157 commit 1803a8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

e2etest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func initAndApplyAndIdempotentTest(t *testing.T, moduleRootPath string, exampleR
5656

5757
tmpDir := copyTerraformFolderToTemp(t, moduleRootPath, exampleRelativePath)
5858
defer func() {
59-
skip := os.Getenv("SKIP_CLEAN_TMP")
59+
skip := os.Getenv("DONOT_CLEAN_TMP")
6060
if skip == "" {
6161
_ = os.RemoveAll(filepath.Clean(tmpDir))
6262
}

upgradetest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func moduleUpgrade(t *testing.T, owner string, repo string, moduleFolderRelative
130130
}
131131
tmpTestDir := test_structure.CopyTerraformFolderToTemp(t, tmpDirForTag, moduleFolderRelativeToRoot)
132132
defer func() {
133-
skip := os.Getenv("SKIP_CLEAN_TMP")
133+
skip := os.Getenv("DONOT_CLEAN_TMP")
134134
if skip == "" {
135135
_ = os.RemoveAll(filepath.Clean(tmpTestDir))
136136
}

0 commit comments

Comments
 (0)