diff --git a/hcl2template/types.packer_config_test.go b/hcl2template/types.packer_config_test.go index e4b526068..5a522b4d0 100644 --- a/hcl2template/types.packer_config_test.go +++ b/hcl2template/types.packer_config_test.go @@ -1,6 +1,7 @@ package hcl2template import ( + "path/filepath" "testing" "github.com/hashicorp/go-version" @@ -624,7 +625,7 @@ func TestParser_no_init(t *testing.T) { }, }, CorePackerVersionString: lockedVersion, - Basedir: "testdata/init", + Basedir: filepath.Clean("testdata/init"), }, true, true, []packersdk.Build{}, @@ -644,7 +645,7 @@ func TestParser_no_init(t *testing.T) { }, }, CorePackerVersionString: lockedVersion, - Basedir: "testdata/init", + Basedir: filepath.Clean("testdata/init"), }, true, true, []packersdk.Build{}, @@ -664,7 +665,7 @@ func TestParser_no_init(t *testing.T) { }, }, CorePackerVersionString: lockedVersion, - Basedir: "testdata/init", + Basedir: filepath.Clean("testdata/init"), }, true, true, []packersdk.Build{},