[Zope-dev] buildout's buildout seems broken (tests also)

Christian Theune ct at gocept.com
Fri Jun 27 04:42:06 EDT 2008


Hi,

does anybody know how the tests for zc.buildout are supposed to be
bootstrapped/configured?

The information that I have is:

- checkout zc.buildout
- run `python dev.cfg`
- run tests

I noticed that the buildout.cfg of zc.buildout contains sections to create
test runners for Python 2.3, 2.4 and 2.5.

When running the `dev.cfg` it runs buildout and fails with the following
error:

Develop: '/home/ctheune/Development/zc.buildout/.'
While:
  Installing.
  Getting section test2.3.
  Initializing part test2.3.
  Getting section python2.3.
Error: The referenced section, 'python2.3', was not defined.

I tweaked the buildout a bit to ignore the Python versions so I could at least
run the tests for Python 2.4, which in turn gave me a couple other errors that
I don't think are related to the buildout configuration. See the attached log
for the specific errors.

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
Failure in test test_bootstrap_py (zc.buildout.tests)
Failed doctest test for zc.buildout.tests.test_bootstrap_py
  File "/home/ctheune/Development/zc.buildout/src/zc/buildout/tests.py", line 581, in test_bootstrap_py

----------------------------------------------------------------------
File "/home/ctheune/Development/zc.buildout/src/zc/buildout/tests.py", line 592, in zc.buildout.tests.test_bootstrap_py
Failed example:
    print system(zc.buildout.easy_install._safe_arg(sys.executable)+' '+
                 'bootstrap.py'), # doctest: +ELLIPSIS
Expected:
    Downloading ...
    Generated script '/sample/bin/buildout'.
Got:
    Creating directory '/sample/bin'.
    Creating directory '/sample/parts'.
    Creating directory '/sample/eggs'.
    Creating directory '/sample/develop-eggs'.
    Generated script '/sample/bin/buildout'.
----------------------------------------------------------------------
File "/home/ctheune/Development/zc.buildout/src/zc/buildout/tests.py", line 609, in zc.buildout.tests.test_bootstrap_py
Failed example:
    ls(sample_buildout, 'eggs')
Expected:
    -  setuptools.eggpyN.N.egg
    d  zc.buildout.eggpyN.N.egg
Got:
    d  setuptools.eggpyN.N.egg
    d  zc.buildout.eggpyN.N.egg

zip_safe flag not set; analyzing archive contents...


Failure in test rmtree (zc.buildout.rmtree)
Traceback (most recent call last):
  File "/home/ctheune//lib/python2.4/unittest.py", line 260, in run
    testMethod()
  File "/home/ctheune//lib/python2.4/doctest.py", line 2157, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for zc.buildout.rmtree.rmtree
  File "/home/ctheune/Development/zc.buildout/src/zc/buildout/rmtree.py", line 20, in rmtree

----------------------------------------------------------------------
File "/home/ctheune/Development/zc.buildout/src/zc/buildout/rmtree.py", line 46, in zc.buildout.rmtree.rmtree
Failed example:
    shutil.rmtree (d) # doctest: +ELLIPSIS
Expected:
    Traceback (most recent call last):
    ...
    OSError: [Errno 13] Permission denied: '...foo'
Got nothing
----------------------------------------------------------------------
File "/home/ctheune/Development/zc.buildout/src/zc/buildout/rmtree.py", line 52, in zc.buildout.rmtree.rmtree
Failed example:
    os.path.isdir (d)
Expected:
    1
Got:
    False
----------------------------------------------------------------------
File "/home/ctheune/Development/zc.buildout/src/zc/buildout/rmtree.py", line 56, in zc.buildout.rmtree.rmtree
Failed example:
    rmtree (d)
Exception raised:
    Traceback (most recent call last):
      File "/home/ctheune//lib/python2.4/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest zc.buildout.rmtree.rmtree[9]>", line 1, in ?
        rmtree (d)
      File "/home/ctheune/Development/zc.buildout/src/zc/buildout/rmtree.py", line 66, in rmtree
        shutil.rmtree (path, onerror = retry_writeable)
      File "/home/ctheune//lib/python2.4/shutil.py", line 155, in rmtree
        onerror(os.listdir, path, sys.exc_info())
      File "/home/ctheune/Development/zc.buildout/src/zc/buildout/rmtree.py", line 63, in retry_writeable
        os.chmod (path, 0600)
    OSError: [Errno 2] No such file or directory: '/tmp/tmptWoD7q'


  Ran 347 tests with 2 failures and 0 errors in 2 minutes 36.324 seconds.


More information about the Zope-Dev mailing list