Kaydet (Commit) 9b35c74f authored tarafından Joffrey F's avatar Joffrey F

Fix dockerignore exclusion logic on Windows

Signed-off-by: 's avatarJoffrey F <joffrey@docker.com>
üst cec3fe7c
......@@ -209,8 +209,8 @@ def match_path(path, pattern):
if pattern:
pattern = os.path.relpath(pattern)
pattern_components = pattern.split('/')
path_components = path.split('/')[:len(pattern_components)]
pattern_components = pattern.split(os.path.sep)
path_components = path.split(os.path.sep)[:len(pattern_components)]
return fnmatch('/'.join(path_components), pattern)
......
......@@ -414,6 +414,9 @@ class VolumeBindTest(BaseIntegrationTest):
['touch', os.path.join(self.mount_dest, self.filename)],
)
@pytest.mark.xfail(
IS_WINDOWS_PLATFORM, reason='Test not designed for Windows platform'
)
def test_create_with_binds_rw(self):
container = self.run_with_volume(
......@@ -429,6 +432,9 @@ class VolumeBindTest(BaseIntegrationTest):
inspect_data = self.client.inspect_container(container)
self.check_container_data(inspect_data, True)
@pytest.mark.xfail(
IS_WINDOWS_PLATFORM, reason='Test not designed for Windows platform'
)
def test_create_with_binds_ro(self):
self.run_with_volume(
False,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment