Skip to content

Commit

Permalink
Merge pull request #3521 from nalind/exclusions
Browse files Browse the repository at this point in the history
conformance: add more tests for exclusion short-circuiting
  • Loading branch information
openshift-merge-robot committed Sep 16, 2021
2 parents 52dfdd7 + cf984eb commit 753716a
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/conformance/conformance_test.go
Expand Up @@ -2870,4 +2870,16 @@ var internalTestCases = []testCase{
contextDir: "dockerignore/exceptions-skip",
fsSkip: []string{"(dir):volume:mtime"},
},

{
name: "dockerignore-exceptions-weirdness-1",
contextDir: "dockerignore/exceptions-weirdness-1",
fsSkip: []string{"(dir):newdir:mtime", "(dir):newdir:(dir):subdir:mtime"},
},

{
name: "dockerignore-exceptions-weirdness-2",
contextDir: "dockerignore/exceptions-weirdness-2",
fsSkip: []string{"(dir):newdir:mtime", "(dir):newdir:(dir):subdir:mtime"},
},
}
@@ -0,0 +1,2 @@
subdir
!*/sub1*
@@ -0,0 +1,2 @@
FROM alpine
COPY ./ /newdir
Empty file.
Empty file.
Empty file.
@@ -0,0 +1,3 @@
subdir
!*/sub1*
!subdir/sub3*
@@ -0,0 +1,2 @@
FROM alpine
COPY ./ /newdir
Empty file.
Empty file.
Empty file.

0 comments on commit 753716a

Please sign in to comment.