[TIP] shell quoting issue with ShiningPanda/Tox

Chris Withers chris at simplistix.co.uk
Mon Jul 2 13:30:24 PDT 2012


Hi Olivier/Holger,

On 02/07/2012 20:46, Olivier Mansion wrote:
>
> 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%%"'

Hmm, maybe an issue with Tox then?

> 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

Ah, but it doesn't pin with a < perhaps? I'm guessing, but perhaps 
that's the cause of the problem:

>     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

Thanks for all the help, I'm sure you can appreciate how frustrating it 
is to make no changes to your code, come back and run a Jenkins job a 
few months later and have it fail in strange and mysterious ways ;-)

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk





More information about the testing-in-python mailing list