Skip to content

Commit de674c1

Browse files
committed
Skip case-sensitive test on Windows
Signed-off-by: Roberto Villarreal <[email protected]>
1 parent b75bfe9 commit de674c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bake/hcl_test.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"reflect"
66
"regexp"
7+
"runtime"
78
"testing"
89

910
hcl "github.com/hashicorp/hcl/v2"
@@ -2306,6 +2307,9 @@ func TestJSONOverridePriority(t *testing.T) {
23062307
})
23072308

23082309
t.Run("JSON override works with lowercase vars", func(t *testing.T) {
2310+
if runtime.GOOS == "windows" {
2311+
t.Skip("Windows case-insensitivity")
2312+
}
23092313
dt := []byte(`
23102314
variable "foo" {
23112315
type = number
@@ -2316,7 +2320,7 @@ func TestJSONOverridePriority(t *testing.T) {
23162320
bar = foo
23172321
}
23182322
}`)
2319-
// may seem reasonable, but not supported
2323+
// may seem reasonable, but not supported (on case-sensitive systems)
23202324
t.Setenv("foo_json", "9000")
23212325
c, err := ParseFile(dt, "docker-bake.hcl")
23222326
require.NoError(t, err)

0 commit comments

Comments
 (0)