Skip to content

Commit

Permalink
Skip Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <narellano@vmware.com>
  • Loading branch information
natalieparellano committed Feb 2, 2024
1 parent f737e8d commit 59770c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layout/layout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -257,6 +258,11 @@ func testImage(t *testing.T, when spec.G, it spec.S) {
})

when("existing config has extra fields", func() {
it.Before(func() {
if runtime.GOOS == "windows" {
t.Skip("Due to line endings the digest is different on Windows")
}
})
it("returns an unmodified digest", func() {
img, err := layout.NewImage(imagePath, layout.FromBaseImagePath(filepath.Join("testdata", "layout", "busybox-sparse")))
h.AssertNil(t, err)
Expand Down

0 comments on commit 59770c9

Please sign in to comment.