File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,15 @@ def test_build_with_dockerignore(self):
62
62
'.dockerignore' ,
63
63
'!ignored/subdir/excepted-file' ,
64
64
'' , # empty line,
65
- '#' , # comment line
65
+ '#* ' , # comment line
66
66
]))
67
67
68
68
with open (os .path .join (base_dir , 'not-ignored' ), 'w' ) as f :
69
69
f .write ("this file should not be ignored" )
70
70
71
+ with open (os .path .join (base_dir , '#file.txt' ), 'w' ) as f :
72
+ f .write ('this file should not be ignored' )
73
+
71
74
subdir = os .path .join (base_dir , 'ignored' , 'subdir' )
72
75
os .makedirs (subdir )
73
76
with open (os .path .join (subdir , 'file' ), 'w' ) as f :
@@ -93,6 +96,7 @@ def test_build_with_dockerignore(self):
93
96
logs = logs .decode ('utf-8' )
94
97
95
98
assert sorted (list (filter (None , logs .split ('\n ' )))) == sorted ([
99
+ '/test/#file.txt' ,
96
100
'/test/ignored/subdir/excepted-file' ,
97
101
'/test/not-ignored'
98
102
])
You can’t perform that action at this time.
0 commit comments