Commit b0545f70 authored by Stefan Eletzhofer's avatar Stefan Eletzhofer

- added a test to proove that the 1.0.5 release breakage as of

  https://bugs.launchpad.net/zc.buildout/+bug/239212 is indeed solved
  in trunk

- fixed the test for the += -= syntax change.
parent e5ad49cb
...@@ -7,6 +7,14 @@ Change History ...@@ -7,6 +7,14 @@ Change History
1.0.6 (unreleased) 1.0.6 (unreleased)
================== ==================
- fixed the test for the += -= syntax in buildout.txt as the test
was actually wronng. The original implementation did a split/join
on whitespace, and later on that was corrected to respect the original
EOL setting, the test was not updated, though. (seletz)
- added a test to verify against https://bugs.launchpad.net/zc.buildout/+bug/239212
in allowhosts.txt (seletz)
- further fixes for """AttributeError: Buildout instance has no - further fixes for """AttributeError: Buildout instance has no
attribute '_logger'""" by providing reasonable defaults attribute '_logger'""" by providing reasonable defaults
within the Buildout constructor (related to the new 'allow-hosts' option) within the Buildout constructor (related to the new 'allow-hosts' option)
......
...@@ -106,4 +106,32 @@ Now we can run the buildout and make sure all attempts to dist.plone.org fails:: ...@@ -106,4 +106,32 @@ Now we can run the buildout and make sure all attempts to dist.plone.org fails::
Error: Couldn't find a distribution for 'kss.core'. Error: Couldn't find a distribution for 'kss.core'.
<BLANKLINE> <BLANKLINE>
Test for issues
---------------
Test for 1.0.5 breakage as in https://bugs.launchpad.net/zc.buildout/+bug/239212::
>>> write(sample_buildout, 'buildout.cfg',
... '''
... [buildout]
... parts=
... python
...
... foo = ${python:interpreter}
...
... [python]
... recipe=zc.recipe.egg
... eggs=ipython
... interpreter=python
... ''')
>>> print system(buildout)
Unused options for buildout: 'foo'.
Installing python.
Getting distribution for 'ipython'.
Got ipython 0.8.3.
Generated script 'bin/ipython'.
Generated script 'bin/pycolor'.
Generated interpreter 'bin/python'.
<BLANKLINE>
The bug 239212 above would have got us an *AttrubuteError* on *buildout._allow_hosts*.
...@@ -1018,7 +1018,7 @@ Verify option values. ...@@ -1018,7 +1018,7 @@ Verify option values.
... """) ... """)
>>> print system(os.path.join('bin', 'buildout')), >>> print system(os.path.join('bin', 'buildout')),
['a1/na2/na3/na4/na5', 'b4', 'c1/nc2/nc3/nc4/nc5', 'h1 h2'] ['a1 a2/na3 a4/na5', 'b1 b2 b3 b4', 'c1 c2/nc3 c4 c5', 'h1 h2']
Develop: '/sample-buildout/demo' Develop: '/sample-buildout/demo'
Cleanup. Cleanup.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment