[TIP] shell quoting issue with ShiningPanda/Tox

Olivier Mansion olivier.mansion at shiningpanda.com
Mon Jul 2 12:46:45 PDT 2012


Hi Chris,

The ShiningPanda plugin does not run this command, once the following line
launched this is tox's realm:

cmd.exe /C '"C:\Jenkins\shiningpanda\jobs\ca977846\tools\Scripts\python.exe
-c "import tox; tox.cmdline();" -c tox.ini && exit %%ERRORLEVEL%%"'

However, I tried with nose's tox.ini that pins coverage, with python 2.5 on
Windows. It works pretty well:

[f36c3a96] $ cmd.exe /C
'"S:\Users\slave\Jenkins\shiningpanda\jobs\9f4f9be4\tools\Scripts\python.exe
-c "import tox; tox.cmdline();" -c tox.ini --recreate && exit
%%ERRORLEVEL%%"'
GLOB sdist-make: S:\Users\slave\Jenkins\workspace\tox\f36c3a96\setup.py

py25 recreate: S:\Users\slave\Jenkins\workspace\tox\f36c3a96\.tox\py25

py25 installdeps: coverage >=3.3

py25 sdist-inst:
S:\Users\slave\Jenkins\workspace\tox\f36c3a96\.tox\dist\nose-1.1.3.dev.zip

py25 runtests: commands[0]

........................S.................................................................................S............S......................................S:\Users\slave\Jenkins\workspace\tox\f36c3a96\nose\plugins\multiprocess.py:159:
RuntimeWarning: multiprocessing module is not available, multiprocess
plugin cannot be used
  "cannot be used", RuntimeWarning)
.....................................S...........................................S......................................................................................SS..........................
----------------------------------------------------------------------
Ran 350 tests in 12.304s

OK (SKIP=7)
___________________________________ summary ____________________________________
  py25: commands succeeded
  congratulations :)


You should definitively host you CI on shiningpanda.com ;-)

Olivier

2012/7/1 Chris Withers <chris at simplistix.co.uk>

> Hi Olivier/Holger,
>
> This one definitely looks like a ShiningPanda issue. Since some libraries
> used in my tox setup now require version pinning for Python 2.5, I've had
> to change my tox.ini to pin versions. However, at least on Windows,
> ShiningPanda's tox builder doesn't appear to be quoting the pinned version
> requirements:
>
> http://jenkins.simplistix.co.**uk/job/checker-tox/12/PYTHON=**
> 2.5,label=windows/console<http://jenkins.simplistix.co.uk/job/checker-tox/12/PYTHON=2.5,label=windows/console>
>
> The following is being run:
>
> C:\Jenkins\workspace\checker-**tox\PYTHON\2.5\label\windows\.**tox\py2.5\Scripts\pip.EXE
> install --download-cache=C:\Jenkins\**workspace\checker-tox\PYTHON\**
> 2.5\label\windows\.tox\_**download mock manuel<1.6 nose nose_fixes
> nose-cov testfixtures zc.buildout zc.recipe.egg zope.exceptions<4.0dev
> zope.interface>=3.6.0,<4.0dev zope.testing
>
> ...when it should, at a minimum, be as follows:
>
> C:\Jenkins\workspace\checker-**tox\PYTHON\2.5\label\windows\.**tox\py2.5\Scripts\pip.EXE
> install --download-cache=C:\Jenkins\**workspace\checker-tox\PYTHON\**
> 2.5\label\windows\.tox\_**download mock "manuel<1.6" nose nose_fixes
> nose-cov testfixtures zc.buildout zc.recipe.egg "zope.exceptions<4.0dev"
> "zope.interface>=3.6.0,<4.**0dev" zope.testing
>
> Is this a Tox issue or a ShiningPanda issue?
>
> cheers,
>
> Chris
>
> Simplistix - Content Management, Batch Processing & Python Consulting
>            - http://www.simplistix.co.uk
>
>


-- 
Olivier Mansion
ShiningPanda President & Co-founder
(+33) 970-440-327

https://www.shiningpanda.com
ShiningPanda: Hosted Continuous Integration for Python
Build, Test and Deploy your Libraries, Applications & Web Projects
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20120702/f30f6574/attachment.htm>


More information about the testing-in-python mailing list