Skip to content

Commit eca5090

Browse files
committed
skip tests on Windows
1 parent d33db91 commit eca5090

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

provisioner/terraform/serve_internal_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"os"
77
"path/filepath"
8+
"runtime"
89
"strings"
910
"testing"
1011

@@ -55,6 +56,10 @@ func Test_getAbsoluteBinaryPath(t *testing.T) {
5556
// nolint:paralleltest
5657
for _, tt := range tests {
5758
t.Run(tt.name, func(t *testing.T) {
59+
if runtime.GOOS == "windows" {
60+
t.Skip("Dummy terraform executable on Windows requires sh which isn't very practical.")
61+
}
62+
5863
// Create a temp dir with the binary
5964
tempDir := t.TempDir()
6065
terraformBinaryOutput := fmt.Sprintf(`#!/bin/sh

0 commit comments

Comments
 (0)