Skip to content

Commit

Permalink
windows-specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkingland committed Feb 16, 2024
1 parent a7c8d1f commit da57b32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/oci/containerize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ func Test_validateLink(t *testing.T) {
}
})
}

// Run a windows-specific absolute path test
// Note this technically succeeds on unix systems, but wrapping in
// an runtime check seems like a good idea to make it more clear.
if runtime.GOOS != "windows" {
path := "c://some/absolute/path"
if runtime.GOOS == "windows" {
path := "testdata/test-links/absoluteLinkWindows"
info, err := os.Lstat(path)
if err != nil {
t.Fatal(err)
Expand Down
1 change: 1 addition & 0 deletions pkg/oci/testdata/test-links/absoluteLinkWindows

0 comments on commit da57b32

Please sign in to comment.