add glob support for rsyncignore. add command line option for rsyncignore

This commit is contained in:
Anatoly Bubenkov
2013-12-05 15:19:31 +01:00
parent 8146b27671
commit f4b86f0127
6 changed files with 50 additions and 26 deletions

View File

@@ -46,6 +46,11 @@ class TestDistOptions:
assert nm.roots
assert testdir.tmpdir in nm.roots
def test_getrsyncignore(self, testdir):
config = testdir.parseconfigure('--rsyncignore=fo*')
nm = NodeManager(config, specs=[execnet.XSpec("popen//chdir=qwe")])
assert 'fo*' in nm.rsyncoptions['ignores']
def test_getrsyncdirs_with_conftest(self, testdir):
p = py.path.local()
for bn in 'x y z'.split():