Commit 93369b04 authored by Julien Muchembled's avatar Julien Muchembled

Fix testing index when /bin/sh is dash (like on Debian)

Contrary to bash, dash filters out environment variables
containing '-' characters.
parent e6c9c70e
......@@ -62,7 +62,7 @@ except ImportError:
from urlparse import urljoin
default_index_url = os.environ.get(
'buildout-testing-index-url',
'BUILDOUT_TESTING_INDEX_URL',
'https://pypi.org/simple',
)
......
......@@ -230,7 +230,7 @@ def buildoutSetUp(test):
register_teardown(lambda: rmtree(tmp))
zc.buildout.easy_install.default_index_url = 'file://'+tmp
os.environ['buildout-testing-index-url'] = (
os.environ['BUILDOUT_TESTING_INDEX_URL'] = (
zc.buildout.easy_install.default_index_url)
def tmpdir(name):
......
......@@ -3428,7 +3428,7 @@ def easy_install_SetUp(test):
def buildout_txt_setup(test):
zc.buildout.testing.buildoutSetUp(test)
mkdir = test.globs['mkdir']
eggs = os.environ['buildout-testing-index-url'][7:]
eggs = os.environ['BUILDOUT_TESTING_INDEX_URL'][7:]
test.globs['sample_eggs'] = eggs
create_sample_eggs(test)
......
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