Skip to content

Commit

Permalink
Use terraform.exe on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
denik committed Jan 30, 2025
1 parent bbedfbe commit e9e47c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ func testAccept(t *testing.T, InprocessMode bool, singleTest string) int {
repls.SetPath(terraformrcPath, "$DATABRICKS_TF_CLI_CONFIG_FILE")

terraformExecPath := filepath.Join(buildDir, "terraform")
if runtime.GOOS == "windows" {
terraformExecPath += ".exe"
}
t.Setenv("DATABRICKS_TF_EXEC_PATH", terraformExecPath)
t.Setenv("TERRAFORM", terraformExecPath)
repls.SetPath(terraformExecPath, "$TERRAFORM")
Expand Down

0 comments on commit e9e47c5

Please sign in to comment.