Merge pull request #3521 from nalind/exclusions

conformance: add more tests for exclusion short-circuiting
This commit is contained in:
OpenShift Merge Robot 2021-09-16 17:34:06 -04:00 committed by GitHub
commit 753716a1f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 21 additions and 0 deletions

View File

@ -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"},
},
}

View File

@ -0,0 +1,2 @@
subdir
!*/sub1*

View File

@ -0,0 +1,2 @@
FROM alpine
COPY ./ /newdir

View File

@ -0,0 +1,3 @@
subdir
!*/sub1*
!subdir/sub3*

View File

@ -0,0 +1,2 @@
FROM alpine
COPY ./ /newdir