Hello,

I noticed that some of our tests started to fail due to missing
environment values in the test script generated by zc.recipe.testrunner.
Switching back the version from 1.4.0 to 1.3.0 fixed the issue.

So, I tried to run the tests of the 1.4.0 release (using the tarball
from Pypi), and I have a bunch of failures, which are summed in the
attached file (also available in http://pastebin.com/HtVk8sKX if the
mailing list doesn't allow attachments). My problem reflects in the
following test:

=====================================================
    File 
"/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt",
line 487, in README.txt
    Failed example:
        cat(sample_buildout, 'bin', 'testdemo')
    Expected:
        #!python -S
        <BLANKLINE>
        import sys
        sys.path[0:0] = [
            '/sample-buildout/parts/testdemo/site-packages',
            ]
        <BLANKLINE>
        <BLANKLINE>
        import os
        path = sys.path[0]
        if os.environ.get('PYTHONPATH'):
            path = os.pathsep.join([path, os.environ['PYTHONPATH']])
        os.environ['PYTHONPATH'] = path
        import site # imports custom buildout-generated site.py
        import os
        sys.argv[0] = os.path.abspath(sys.argv[0])
        os.chdir('/sample-buildout/parts/testdemo/working-directory')
        os.environ['zc.recipe.testrunner'] = '42'
        <BLANKLINE>
        import zope.testrunner
        <BLANKLINE>
        if __name__ == '__main__':
            zope.testrunner.run([
                '--test-path', '/sample-buildout/demo',
                ])
    Got:
        #!python
        <BLANKLINE>
        import sys
        sys.path[0:0] = [
            '/sample-buildout/demo',
            '/sample-buildout/eggs/zope.testrunner-X-pyN.N.egg',
            '/sample-buildout/eggs/zope.interface-X-pyN.N.egg',
            '/sample-buildout/eggs/zope.exceptions-X-pyN.N.egg',
            '/sample-buildout/eggs/setuptools-X-pyN.N.egg',
            ]
        <BLANKLINE>
        <BLANKLINE>
        import zope.testrunner
        <BLANKLINE>
        if __name__ == '__main__':
            zope.testrunner.run([
                '--test-path', '/sample-buildout/demo',
                ])
=====================================================

As you can see, the generated file misses the line
``os.environ['zc.recipe.testrunner'] = '42' ``.

Here is the content of "bin/test" generated by Buildout in the
zc.recipe.testrunner 1.4.0 directory (in case there are weird
dependencies):

=====================================================
    #!/tmp/sb/zc.recipe.testrunner-1.4.0/../bin/python

    import sys
    sys.path[0:0] = [
        '/tmp/sb/zc.recipe.testrunner-1.4.0/src',
        
'/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zope.testrunner-4.0.0b5-py2.5.egg',
        
'/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zope.interface-3.6.1-py2.5-linux-x86_64.egg',
        
'/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zope.exceptions-3.6.1-py2.5.egg',
        
'/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/setuptools-0.6c12dev_r85381-py2.5.egg',
        '/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zope.testing-3.10.0-py2.5.egg',
        
'/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/z3c.recipe.scripts-1.0.1-py2.5.egg',
        '/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zc.buildout-1.5.2-py2.5.egg',
        '/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zc.recipe.egg-1.3.2-py2.5.egg',
        ]


    import zope.testrunner

    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', '/tmp/sb/zc.recipe.testrunner-1.4.0/src',
            ])
=====================================================

It seems to be a serious regression, so I guess I have something wrong
on my side, otherwise other people would have noticed it. What do I
miss?
Are there any public continuous integration reports for those projects?

Thanks,

 Jonathan
$ cd /tmp/
tmp$ virtualenv --no-site-packages --unzip-setuptools sb
New python executable in sb/bin/python2.5
Also creating executable in sb/bin/python
Installing setuptools.............done.
tmp$ cd sb
sb$ wget http://pypi.python.org/packages/source/z/zc.recipe.testrunner/zc.recipe.testrunner-1.4.0.tar.gz
--2010-10-13 17:45:14--  http://pypi.python.org/packages/source/z/zc.recipe.testrunner/zc.recipe.testrunner-1.4.0.tar.gz
Résolution de pypi.python.org... 82.94.164.168, 2001:888:2000:d::a8
Connexion vers pypi.python.org|82.94.164.168|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 27973 (27K) [application/x-gzip]
Sauvegarde en : «zc.recipe.testrunner-1.4.0.tar.gz»

100%[=========================================================================================================================>] 27 973      --.-K/s   ds 0,08s   

2010-10-13 17:45:14 (325 KB/s) - «zc.recipe.testrunner-1.4.0.tar.gz» sauvegardé [27973/27973]

sb$ tar xf zc.recipe.testrunner-1.4.0.tar.gz 
sb$ cd zc.recipe.testrunner-1.4.0/
zc.recipe.testrunner-1.4.0$ ../bin/python bootstrap.py 
Creating directory '/tmp/sb/zc.recipe.testrunner-1.4.0/bin'.
Creating directory '/tmp/sb/zc.recipe.testrunner-1.4.0/parts'.
Creating directory '/tmp/sb/zc.recipe.testrunner-1.4.0/eggs'.
Creating directory '/tmp/sb/zc.recipe.testrunner-1.4.0/develop-eggs'.
Getting distribution for 'setuptools'.
Got setuptools 0.6c12dev-r85381.
Generated script '/tmp/sb/zc.recipe.testrunner-1.4.0/bin/buildout'.
zc.recipe.testrunner-1.4.0$ ./bin/buildout 
Develop: '/tmp/sb/zc.recipe.testrunner-1.4.0/.'
Getting distribution for 'z3c.recipe.scripts>=1.0.0'.
Got z3c.recipe.scripts 1.0.1.
Getting distribution for 'zope.testrunner'.
package init file 'src/zope/testrunner/testrunner-ex/__init__.py' not found (or not a regular file)
Creating missing __init__.py for zope.testrunner.testrunner-ex
Got zope.testrunner 4.0.0b5.
Getting distribution for 'zc.recipe.egg>=1.3.0'.
Got zc.recipe.egg 1.3.2.
Getting distribution for 'zope.interface'.
/tmp/easy_install-T7uzsG/zope.interface-3.6.1/build_ext_3.py:21: Warning: 'as' will become a reserved keyword in Python 2.6
Got zope.interface 3.6.1.
Getting distribution for 'zope.exceptions'.
Got zope.exceptions 3.6.1.
Installing test.
Getting distribution for 'zope.testing'.
warning: no files found matching '*.test' under directory 'src'
warning: no files found matching 'sampletests' under directory 'src'
Got zope.testing 3.10.0.
Generated script '/tmp/sb/zc.recipe.testrunner-1.4.0/bin/test'.
zc.recipe.testrunner-1.4.0$ ./bin/test -cvvv
Running tests at level 1
Running zope.testrunner.layer.UnitTests tests:
  Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
  Running:
 /tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt (13.283 s)


Failure in test /tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt
Failed doctest test for README.txt
  File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 0

----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 222, in README.txt
Failed example:
    ls(sample_buildout, 'parts', 'testdemo', 'working-directory')
Expected:
    d  coverage
Got nothing
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 225, in README.txt
Failed example:
    ls(sample_buildout, 'parts', 'testdemo', 'working-directory')
Expected:
    d  coverage
Got nothing
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 292, in README.txt
Failed example:
    cat(sample_buildout, 'parts', 'testdemo', 'site-packages', 'site.py')
    # doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest README.txt[36]>", line 1, in <module>
        cat(sample_buildout, 'parts', 'testdemo', 'site-packages', 'site.py')
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/testing.py", line 53, in cat
    IOError: [Errno 2] No such file or directory: '/tmp/tmpQ2rDOSbuildoutSetUp/_TEST_/sample-buildout/parts/testdemo/site-packages/site.py'
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 328, in README.txt
Failed example:
    cat(sample_buildout, 'bin', 'testdemo')
Expected:
    #!python -S
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/parts/testdemo/site-packages',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import os
    path = sys.path[0]
    if os.environ.get('PYTHONPATH'):
        path = os.pathsep.join([path, os.environ['PYTHONPATH']])
    os.environ['PYTHONPATH'] = path
    import site # imports custom buildout-generated site.py
    import os
    sys.argv[0] = os.path.abspath(sys.argv[0])
    os.chdir('/foo/bar')
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', '/sample-buildout/demo',
            ])
Got:
    #!python
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/demo',
        '/sample-buildout/eggs/zope.testrunner-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.interface-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.exceptions-X-pyN.N.egg',
        '/sample-buildout/eggs/setuptools-X-pyN.N.egg',
        '/usr/local/zope/lib/python',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', '/sample-buildout/demo',
            ])
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 387, in README.txt
Failed example:
    cat(sample_buildout, 'bin', 'testdemo')
Expected:
    #!python -S
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/parts/testdemo/site-packages',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import os
    path = sys.path[0]
    if os.environ.get('PYTHONPATH'):
        path = os.pathsep.join([path, os.environ['PYTHONPATH']])
    os.environ['PYTHONPATH'] = path
    import site # imports custom buildout-generated site.py
    import os
    sys.argv[0] = os.path.abspath(sys.argv[0])
    os.chdir('/sample-buildout/parts/testdemo/working-directory')
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run((['--tests-pattern', '^f?tests$',
    '-v'
    ]) + [
            '--test-path', '/sample-buildout/demo',
            ])
Got:
    #!python
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/demo',
        '/sample-buildout/eggs/zope.testrunner-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.interface-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.exceptions-X-pyN.N.egg',
        '/sample-buildout/eggs/setuptools-X-pyN.N.egg',
        '/usr/local/zope/lib/python',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run((['--tests-pattern', '^f?tests$',
    '-v'
    ]) + [
            '--test-path', '/sample-buildout/demo',
            ])
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 487, in README.txt
Failed example:
    cat(sample_buildout, 'bin', 'testdemo')
Expected:
    #!python -S
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/parts/testdemo/site-packages',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import os
    path = sys.path[0]
    if os.environ.get('PYTHONPATH'):
        path = os.pathsep.join([path, os.environ['PYTHONPATH']])
    os.environ['PYTHONPATH'] = path
    import site # imports custom buildout-generated site.py
    import os
    sys.argv[0] = os.path.abspath(sys.argv[0])
    os.chdir('/sample-buildout/parts/testdemo/working-directory')
    os.environ['zc.recipe.testrunner'] = '42'
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', '/sample-buildout/demo',
            ])
Got:
    #!python
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/demo',
        '/sample-buildout/eggs/zope.testrunner-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.interface-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.exceptions-X-pyN.N.egg',
        '/sample-buildout/eggs/setuptools-X-pyN.N.egg',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', '/sample-buildout/demo',
            ])
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 514, in README.txt
Failed example:
    print system(os.path.join(sample_buildout, 'bin', 'testdemo') + ' -vv'),
Expected:
    Running tests at level 1
    Running zope.testrunner.layer.UnitTests tests:
      Set up zope.testrunner.layer.UnitTests in 0.001 seconds.
      Running:
     test (demo.tests.DemoTests)
      Ran 1 tests with 0 failures and 0 errors in 0.001 seconds.
    Tearing down left over layers:
      Tear down zope.testrunner.layer.UnitTests in 0.001 seconds.
Got:
    Running tests at level 1
    Running zope.testrunner.layer.UnitTests tests:
      Set up zope.testrunner.layer.UnitTests in 0.001 seconds.
      Running:
     test (demo.tests.DemoTests)
    <BLANKLINE>
    Failure in test test (demo.tests.DemoTests)
    Traceback (most recent call last):
      File "/usr/lib/python2.5/unittest.py", line 260, in run
        testMethod()
      File "/sample-buildout/demo/demo/tests.py", line 7, in test
        self.assertEquals('42', os.environ.get('zc.recipe.testrunner', '23'))
      File "/usr/lib/python2.5/unittest.py", line 334, in failUnlessEqual
        (msg or '%r != %r' % (first, second))
    AssertionError: '42' != '23'
    <BLANKLINE>
    <BLANKLINE>
      Ran 1 tests with 1 failures and 0 errors in 0.001 seconds.
    Tearing down left over layers:
      Tear down zope.testrunner.layer.UnitTests in 0.001 seconds.
    <BLANKLINE>
    Tests with failures:
       test (demo.tests.DemoTests)
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 546, in README.txt
Failed example:
    cat(sample_buildout, 'bin', 'testdemo')
Expected:
    #!python -S
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/parts/testdemo/site-packages',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import os
    path = sys.path[0]
    if os.environ.get('PYTHONPATH'):
        path = os.pathsep.join([path, os.environ['PYTHONPATH']])
    os.environ['PYTHONPATH'] = path
    import site # imports custom buildout-generated site.py
    import os
    sys.argv[0] = os.path.abspath(sys.argv[0])
    os.chdir('/sample-buildout/parts/testdemo/working-directory')
    print 'Hello all you egg-laying pythons!'
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run((['--tests-pattern', '^f?tests$',
    '-v'
    ]) + [
            '--test-path', '/sample-buildout/demo',
            ])
Got:
    #!python
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/demo',
        '/sample-buildout/eggs/zope.testrunner-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.interface-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.exceptions-X-pyN.N.egg',
        '/sample-buildout/eggs/setuptools-X-pyN.N.egg',
        '/usr/local/zope/lib/python',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run((['--tests-pattern', '^f?tests$',
    '-v'
    ]) + [
            '--test-path', '/sample-buildout/demo',
            ])
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 597, in README.txt
Failed example:
    cat(sample_buildout, 'bin', 'testdemo')
Expected:
    #!python -S
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/parts/testdemo/site-packages',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import os
    path = sys.path[0]
    if os.environ.get('PYTHONPATH'):
        path = os.pathsep.join([path, os.environ['PYTHONPATH']])
    os.environ['PYTHONPATH'] = path
    import site # imports custom buildout-generated site.py
    import os
    sys.argv[0] = os.path.abspath(sys.argv[0])
    os.chdir('/sample-buildout/parts/testdemo/working-directory')
    print 'Hello all you egg-laying pythons!'
    print 'I thought pythons were live bearers?'
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run((['--tests-pattern', '^f?tests$',
    '-v'
    ]) + [
            '--test-path', '/sample-buildout/demo',
            ])
Got:
    #!python
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/demo',
        '/sample-buildout/eggs/zope.testrunner-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.interface-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.exceptions-X-pyN.N.egg',
        '/sample-buildout/eggs/setuptools-X-pyN.N.egg',
        '/usr/local/zope/lib/python',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run((['--tests-pattern', '^f?tests$',
    '-v'
    ]) + [
            '--test-path', '/sample-buildout/demo',
            ])
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 647, in README.txt
Failed example:
    cat(sample_buildout, 'bin', 'testdemo')
Expected:
    #!python -S
    <BLANKLINE>
    import os
    <BLANKLINE>
    join = os.path.join
    base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
    base = os.path.dirname(base)
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        join(base, 'parts/testdemo/site-packages'),
        ]
    <BLANKLINE>
    <BLANKLINE>
    import os
    path = sys.path[0]
    if os.environ.get('PYTHONPATH'):
        path = os.pathsep.join([path, os.environ['PYTHONPATH']])
    os.environ['PYTHONPATH'] = path
    import site # imports custom buildout-generated site.py
    import os
    sys.argv[0] = os.path.abspath(sys.argv[0])
    os.chdir(join(base, 'parts/testdemo/working-directory'))
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', join(base, 'demo'),
            ])
Got:
    #!python
    <BLANKLINE>
    import os
    <BLANKLINE>
    join = os.path.join
    base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
    base = os.path.dirname(base)
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        join(base, 'demo'),
        join(base, 'eggs/zope.testrunner-X-pyN.N.egg'),
        join(base, 'eggs/zope.interface-X-pyN.N.egg'),
        join(base, 'eggs/zope.exceptions-X-pyN.N.egg'),
        join(base, 'eggs/setuptools-X-pyN.N.egg'),
        '/usr/local/zope/lib/python',
        join(base, 'sources'),
        ]
    <BLANKLINE>
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', join(base, 'demo'),
            ])
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 679, in README.txt
Failed example:
    cat(sample_buildout, 'parts', 'testdemo', 'site-packages', 'site.py')
    # doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest README.txt[59]>", line 1, in <module>
        cat(sample_buildout, 'parts', 'testdemo', 'site-packages', 'site.py')
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/testing.py", line 53, in cat
    IOError: [Errno 2] No such file or directory: '/tmp/tmpQ2rDOSbuildoutSetUp/_TEST_/sample-buildout/parts/testdemo/site-packages/site.py'
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 721, in README.txt
Failed example:
    cat(sample_buildout, 'bin', 'testdemo')
Expected:
    #!python -S
    <BLANKLINE>
    import os
    <BLANKLINE>
    join = os.path.join
    base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
    base = os.path.dirname(base)
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        join(base, 'parts/testdemo/site-packages'),
        ]
    <BLANKLINE>
    <BLANKLINE>
    import os
    path = sys.path[0]
    if os.environ.get('PYTHONPATH'):
        path = os.pathsep.join([path, os.environ['PYTHONPATH']])
    os.environ['PYTHONPATH'] = path
    import site # imports custom buildout-generated site.py
    import os
    sys.argv[0] = os.path.abspath(sys.argv[0])
    os.chdir(join(base, 'parts/testdemo/working-directory'))
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', join(base, 'demo'),
            ])
Got:
    #!python
    <BLANKLINE>
    import os
    <BLANKLINE>
    join = os.path.join
    base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
    base = os.path.dirname(base)
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        join(base, 'demo'),
        join(base, 'eggs/zope.testrunner-X-pyN.N.egg'),
        join(base, 'eggs/zope.interface-X-pyN.N.egg'),
        join(base, 'eggs/zope.exceptions-X-pyN.N.egg'),
        join(base, 'eggs/setuptools-X-pyN.N.egg'),
        '/usr/local/zope/lib/python',
        join(base, 'sources'),
        ]
    <BLANKLINE>
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run([
            '--test-path', join(base, 'demo'),
            ])
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 791, in README.txt
Failed example:
    cat(sample_buildout, 'parts', 'testdemo', 'site-packages', 'site.py')
    # doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest README.txt[65]>", line 1, in <module>
        cat(sample_buildout, 'parts', 'testdemo', 'site-packages', 'site.py')
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/testing.py", line 53, in cat
    IOError: [Errno 2] No such file or directory: '/tmp/tmpQ2rDOSbuildoutSetUp/_TEST_/sample-buildout/parts/testdemo/site-packages/site.py'
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 844, in README.txt
Failed example:
    cat(sample_buildout, 'parts', 'testdemo', 'site-packages', 'site.py')
    # doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest README.txt[68]>", line 1, in <module>
        cat(sample_buildout, 'parts', 'testdemo', 'site-packages', 'site.py')
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/testing.py", line 53, in cat
    IOError: [Errno 2] No such file or directory: '/tmp/tmpQ2rDOSbuildoutSetUp/_TEST_/sample-buildout/parts/testdemo/site-packages/site.py'
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 954, in README.txt
Failed example:
    print system(
        os.path.join(new_buildout, 'bin', 'buildout') + ' -q'),
Expected:
    While:
      Installing testdemo.
      Getting distribution for 'demo'.
    Error: Couldn't find a distribution for 'demo'.
Got:
    While:
      Installing testdemo.
    <BLANKLINE>
    An internal error occurred due to a bug in either zc.buildout or in a
    recipe being used:
    Traceback (most recent call last):
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/buildout.py", line 1805, in main
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/buildout.py", line 584, in install
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/buildout.py", line 1297, in _call
      File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/__init__.py", line 46, in install
        eggs, ws = self._delegated.working_set(('zope.testrunner', ))
      File "/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zc.recipe.egg-1.3.2-pyN.N.egg/zc/recipe/egg/egg.py", line 101, in working_set
        **kw)
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/easy_install.py", line 1089, in install
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/easy_install.py", line 359, in __init__
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/easy_install.py", line 103, in _has_broken_dash_S
    ValueError: invalid literal for int() with base 10: ''
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 979, in README.txt
Failed example:
    print system(
        os.path.join(new_buildout, 'bin', 'buildout') + ' -q'),
Expected nothing
Got:
    While:
      Installing testdemo.
    <BLANKLINE>
    An internal error occurred due to a bug in either zc.buildout or in a
    recipe being used:
    Traceback (most recent call last):
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/buildout.py", line 1805, in main
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/buildout.py", line 584, in install
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/buildout.py", line 1297, in _call
      File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/__init__.py", line 46, in install
        eggs, ws = self._delegated.working_set(('zope.testrunner', ))
      File "/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zc.recipe.egg-1.3.2-py2.5.egg/zc/recipe/egg/egg.py", line 85, in working_set
        allowed_eggs_from_site_packages=self.allowed_eggs,
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/easy_install.py", line 1203, in working_set
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/easy_install.py", line 1089, in install
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/easy_install.py", line 359, in __init__
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/easy_install.py", line 103, in _has_broken_dash_S
    ValueError: invalid literal for int() with base 10: ''
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 1004, in README.txt
Failed example:
    print system(
        os.path.join(new_buildout, 'bin', 'buildout') + ' -q'),
Expected:
    While:
      Installing testdemo.
      Getting distribution for 'demo'.
    Error: Couldn't find a distribution for 'demo'.
Got:
    While:
      Installing testdemo.
    <BLANKLINE>
    An internal error occurred due to a bug in either zc.buildout or in a
    recipe being used:
    Traceback (most recent call last):
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/buildout.py", line 1805, in main
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/buildout.py", line 584, in install
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/buildout.py", line 1297, in _call
      File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/__init__.py", line 46, in install
        eggs, ws = self._delegated.working_set(('zope.testrunner', ))
      File "/tmp/sb/zc.recipe.testrunner-1.4.0/eggs/zc.recipe.egg-1.3.2-pyN.N.egg/zc/recipe/egg/egg.py", line 85, in working_set
        allowed_eggs_from_site_packages=self.allowed_eggs,
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/easy_install.py", line 1203, in working_set
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/easy_install.py", line 1089, in install
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/easy_install.py", line 359, in __init__
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-pyN.N.egg/zc/buildout/easy_install.py", line 103, in _has_broken_dash_S
    ValueError: invalid literal for int() with base 10: ''
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 1051, in README.txt
Failed example:
    cat(sample_buildout, 'bin', 'testdemo')
Expected:
    #!python -S
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/parts/testdemo/site-packages',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import os
    path = sys.path[0]
    if os.environ.get('PYTHONPATH'):
        path = os.pathsep.join([path, os.environ['PYTHONPATH']])
    os.environ['PYTHONPATH'] = path
    import site # imports custom buildout-generated site.py
    import os
    sys.argv[0] = os.path.abspath(sys.argv[0])
    os.chdir('/sample-buildout/parts/testdemo/working-directory')
    print 'Hello all you egg-laying pythons!'
    print 'I thought pythons were live bearers?'
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run((['--tests-pattern', '^f?tests$',
    '-v'
    ]) + [
            '--test-path', '/sample-buildout/demo',
            ])
Got:
    #!python
    <BLANKLINE>
    import sys
    sys.path[0:0] = [
        '/sample-buildout/demo',
        '/sample-buildout/eggs/zope.testrunner-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.interface-X-pyN.N.egg',
        '/sample-buildout/eggs/zope.exceptions-X-pyN.N.egg',
        '/sample-buildout/eggs/setuptools-X-pyN.N.egg',
        '/usr/local/zope/lib/python',
        ]
    <BLANKLINE>
    <BLANKLINE>
    import zope.testrunner
    <BLANKLINE>
    if __name__ == '__main__':
        zope.testrunner.run((['--tests-pattern', '^f?tests$',
    '-v'
    ]) + [
            '--test-path', '/sample-buildout/demo',
            ])
----------------------------------------------------------------------
File "/tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt", line 1104, in README.txt
Failed example:
    cat(sample_buildout, 'parts', 'testdemo', 'site-packages',
        'sitecustomize.py') # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest README.txt[99]>", line 2, in <module>
        'sitecustomize.py') # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
      File "/tmp/tmpdAFHmG/zc.buildout-1.5.2-py2.5.egg/zc/buildout/testing.py", line 53, in cat
    IOError: [Errno 2] No such file or directory: '/tmp/tmpQ2rDOSbuildoutSetUp/_TEST_/sample-buildout/parts/testdemo/site-packages/sitecustomize.py'


 /tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/bugfixes.txt (1.263 s)
  Ran 2 tests with 1 failures and 0 errors in 14.589 seconds.
Tearing down left over layers:
  Tear down zope.testrunner.layer.UnitTests in 0.000 seconds.

Tests with failures:
   /tmp/sb/zc.recipe.testrunner-1.4.0/src/zc/recipe/testrunner/README.txt
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to