the tox command fails to invoke tools/tox_install.sh because it passes
a stale url for its extra requirements. patch that url in tox.ini
Signed-off-by: Casey Bodley <cbodley@redhat.com>
sha1 = cconf.get('sha1')
if sha1 is not None:
run_in_tempest_dir(ctx, client, [ 'git', 'reset', '--hard', sha1 ])
+
+ # tox.ini contains a dead link, replace it with the new one
+ from_url = 'https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt'
+ to_url = 'https://opendev.org/openstack/requirements/raw/branch/stable/pike/upper-constraints.txt'
+ run_in_tempest_dir(ctx, client, [
+ 'sed', '-i',
+ run.Raw('"s|{}|{}|"'.format(from_url, to_url)),
+ 'tox.ini'
+ ])
try:
yield
finally: