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 f9cd1e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 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"
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 f9cd1e2

Please sign in to comment.