Commit b5c7d97c authored by Łukasz Nowak's avatar Łukasz Nowak

Test relative links chomping.

parent a98cee9c
...@@ -463,12 +463,24 @@ used: ...@@ -463,12 +463,24 @@ used:
... extends = baseB.cfg ... extends = baseB.cfg
... bar = foo ... bar = foo
... """) ... """)
>>> write(server_data, 'baseD.cfg', """\
... [buildout]
... extends-cache = cache
... bar = foo
... """)
>>> mkdir(server_data, 'deeper')
>>> write(server_data, 'deeper', 'base.cfg', """\
... [buildout]
... extends-cache = cache
... extends = ../baseD.cfg
... bar = foo
... """)
>>> write('buildout.cfg', """\ >>> write('buildout.cfg', """\
... [buildout] ... [buildout]
... extends-cache = cache ... extends-cache = cache
... newest = true ... newest = true
... extends = %sbaseA.cfg %sbaseB.cfg %sbaseC.cfg ... extends = %sbaseA.cfg %sbaseB.cfg %sbaseC.cfg %sdeeper/base.cfg
... """ % (server_url, server_url, server_url)) ... """ % (server_url, server_url, server_url, server_url))
>>> print system(buildout + " -n") >>> print system(buildout + " -n")
Unused options for buildout: 'bar' 'foo'. Unused options for buildout: 'bar' 'foo'.
...@@ -487,6 +499,8 @@ The URL http://localhost/baseA.cfg was downloaded. ...@@ -487,6 +499,8 @@ The URL http://localhost/baseA.cfg was downloaded.
The URL http://localhost/base.cfg was downloaded. The URL http://localhost/base.cfg was downloaded.
The URL http://localhost/baseB.cfg was downloaded. The URL http://localhost/baseB.cfg was downloaded.
The URL http://localhost/baseC.cfg was downloaded. The URL http://localhost/baseC.cfg was downloaded.
The URL http://localhost/deeper/base.cfg was downloaded.
The URL http://localhost/baseD.cfg was downloaded.
Unused options for buildout: 'bar' 'foo'. Unused options for buildout: 'bar' 'foo'.
>>> zc.buildout.download.Download.download = old_download >>> zc.buildout.download.Download.download = old_download
......
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