mirror of
https://github.com/moby/moby.git
synced 2025-07-29 07:21:35 +03:00
Merge pull request #26553 from darrenstahlmsft/FixWildcard
Windows: Fix wildcard expansion after slash in filename
This commit is contained in:
@ -868,7 +868,6 @@ RUN find "test6" "C:/test dir/test_file6"`
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestBuildCopyWildcard(c *check.C) {
|
||||
testRequires(c, DaemonIsLinux) // Windows doesn't have httpserver image yet
|
||||
name := "testcopywildcard"
|
||||
server, err := fakeStorage(map[string]string{
|
||||
"robots.txt": "hello",
|
||||
@ -882,10 +881,10 @@ func (s *DockerSuite) TestBuildCopyWildcard(c *check.C) {
|
||||
ctx, err := fakeContext(fmt.Sprintf(`FROM busybox
|
||||
COPY file*.txt /tmp/
|
||||
RUN ls /tmp/file1.txt /tmp/file2.txt
|
||||
RUN mkdir /tmp1
|
||||
RUN [ "mkdir", "/tmp1" ]
|
||||
COPY dir* /tmp1/
|
||||
RUN ls /tmp1/dirt /tmp1/nested_file /tmp1/nested_dir/nest_nest_file
|
||||
RUN mkdir /tmp2
|
||||
RUN [ "mkdir", "/tmp2" ]
|
||||
ADD dir/*dir %s/robots.txt /tmp2/
|
||||
RUN ls /tmp2/nest_nest_file /tmp2/robots.txt
|
||||
`, server.URL()),
|
||||
|
Reference in New Issue
Block a user