From 020511eb1fd27c83f1579ae0acc2a41c52bc465a Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 11 Sep 2019 16:45:10 -0400 Subject: [PATCH] qa/tempest: update url for upper-constraints.txt in tox.ini 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 --- qa/tasks/tempest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qa/tasks/tempest.py b/qa/tasks/tempest.py index 14cd2ed4a90..474b5b981e3 100644 --- a/qa/tasks/tempest.py +++ b/qa/tasks/tempest.py @@ -58,6 +58,15 @@ def download(ctx, config): 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: -- 2.39.5