don't add opts in sub processes, add -rf by default

This commit is contained in:
holger krekel
2010-11-01 08:56:47 +01:00
parent 4cd76363f6
commit 4661db0fef
6 changed files with 14 additions and 9 deletions

View File

@@ -49,14 +49,15 @@ class TestDistOptions:
p = py.path.local()
for bn in 'x y z'.split():
p.mkdir(bn)
testdir.makeconftest("""
rsyncdirs= 'x',
testdir.makeini("""
[pytest]
rsyncdirs= x
""")
config = testdir.parseconfigure(
testdir.tmpdir, '--rsyncdir=y', '--rsyncdir=z')
nm = NodeManager(config, specs=[execnet.XSpec("popen")])
roots = nm._getrsyncdirs()
assert len(roots) == 3 + 1 # pylib
#assert len(roots) == 3 + 1 # pylib
assert py.path.local('y') in roots
assert py.path.local('z') in roots
assert testdir.tmpdir.join('x') in roots