Commits

hol...@merlinux.eu  committed ca68b43

fix for windows: use shell=True. this avoids a strange error where a command was not found

  • Participants
  • Parent commits e12f329

Comments (0)

Files changed (5)

File doc/config.txt

 Use ``{posargs:DEFAULTS}`` to specify those.
 
 
-Substition for values from other sections
-+++++++++++++++++++++++++++++++++++++++++
+Substition with values from other sections
++++++++++++++++++++++++++++++++++++++++++++
 
 .. versionadded:: 1.4
 

File tests/conftest.py

             self.report = ReportExpectMock(self)
         def make_emptydir(self, path):
             pass
-        def popen(self, args, cwd, stdout=None, stderr=None, env=None):
+        def popen(self, args, cwd, shell=True, stdout=None, stderr=None, 
+		env=None):
             pm = pcallMock(args, cwd, env, stdout, stderr)
             self._pcalls.append(pm)
             return pm

File tests/test_z_cmdline.py

         assert session.report.session == session
         assert not session.config.logdir.listdir()
         action = session.newaction(None, "something")
-        action.popen(["ls", ])
+        action.popen(["echo", ])
         match = session.report.getnext("logpopen")
         assert match[1].outpath.relto(session.config.logdir)
 
 [tox]
-envlist=py27,py26,py25,py24,py31,docs
+envlist=py27,py26,py25,py24,py31,py32,docs
 indexserver =
     testrun = http://pypi.testrun.org
     pypi = http://pypi.python.org/simple
 commands=echo {posargs}
 
 [testenv]
-commands=py.test --junitxml={envlogdir}/junit-{envname}.xml []
+commands=py.test --junitxml={envlogdir}/junit-{envname}.xml {posargs}
 deps=:testrun:pytest
 
-[testenv:py27-xdist]
-commands=py.test -n5 --junitxml={envlogdir}/junit-{envname}.xml []
-deps=pytest-xdist
-
 [testenv:docs]
 basepython=python
 changedir=doc
 deps=:pypi:sphinx
-     pytest
+     {testenv$deps}
 commands=
     py.test -v \
         --junitxml={envlogdir}/junit-{envname}.xml \

File tox/_cmdline.py

         #args = [str(x) for x in args]
         if env is None:
             env = os.environ.copy()
-        return self.session.popen(args, stdout=stdout, stderr=stderr,
-            cwd=str(cwd), env=env)
+        return self.session.popen(args, cwd=str(cwd), shell=True,
+	    stdout=stdout, stderr=stderr, env=env)
 
 class Reporter:
     actionchar = "-"