File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,8 @@ def make_reltoroot(roots, args):
186
186
for arg in args :
187
187
parts = arg .split (splitcode )
188
188
fspath = py .path .local (parts [0 ])
189
+ if not fspath .exists ():
190
+ continue
189
191
for root in roots :
190
192
x = fspath .relto (root )
191
193
if x or fspath == root :
@@ -236,7 +238,7 @@ def shutting_down(self):
236
238
def setup (self ):
237
239
self .log ("setting up worker session" )
238
240
spec = self .gateway .spec
239
- args = sys . argv [ 1 : ]
241
+ args = [ str ( x ) for x in self . config . invocation_args or () ]
240
242
if not spec .popen or spec .chdir :
241
243
args = make_reltoroot (self .nodemanager .roots , args )
242
244
option_dict = {}
Original file line number Diff line number Diff line change 12
12
pytestmaster: git+https://github.com/pytest-dev/pytest.git@master
13
13
pytestfeatures: git+https://github.com/pytest-dev/pytest.git@features
14
14
commands =
15
- pytest {posargs} -- runpytest =subprocess
15
+ pytest {posargs}
16
16
17
17
[testenv:linting]
18
18
skipsdist = True
You can’t perform that action at this time.
0 commit comments