]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tempest: update url for upper-constraints.txt in tox.ini
authorCasey Bodley <cbodley@redhat.com>
Wed, 11 Sep 2019 20:45:10 +0000 (16:45 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 13 Sep 2019 19:04:43 +0000 (15:04 -0400)
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>
qa/tasks/tempest.py

index 14cd2ed4a90b17385f8b62a7751a622870b3263a..474b5b981e377d83808b6be687deb6395f237e9e 100644 (file)
@@ -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: