We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f83ac commit c7bc3aaCopy full SHA for c7bc3aa
tests/test_config.py
@@ -189,6 +189,18 @@ def test_multiple_include(self):
189
self.assertEqual(config.get('AddressFamily'), socket.AF_INET)
190
self.assertEqual(config.get('Port'), 2222)
191
192
+ def test_glob_with_subdir(self):
193
+ """Test including a glob which matches on a subdirectory"""
194
+
195
+ os.mkdir('.ssh/config.d')
196
+ os.mkdir('.ssh/config.d/subdir')
197
198
+ with open('.ssh/config.d/file', 'w') as f:
199
+ f.write('Port 2222\n')
200
201
+ config = self._parse_config('Include config.d/*')
202
+ self.assertEqual(config.get('Port'), 2222)
203
204
def test_match_all(self):
205
"""Test a match block which always matches"""
206
0 commit comments