]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/tox: use python3 for tox tests
authorKefu Chai <kchai@redhat.com>
Sun, 24 May 2020 17:04:37 +0000 (01:04 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Jun 2020 08:34:53 +0000 (16:34 +0800)
both tempest and keystone have dropped python2 support in their tox
based tests.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 874f8b79e5a52a868b5e6ef2ba7fd4f88817e3a0)

qa/tasks/tox.py

index 9a19cb6db3f5298c5cbbb3db79c0ea868dce9cff..36c226d0b2e6e4555e6347fa1ce3db645bbc7c2d 100644 (file)
@@ -31,7 +31,7 @@ def task(ctx, config):
         # yup, we have to deploy tox first. The packaged one, available
        # on Sepia's Ubuntu machines, is outdated for Keystone/Tempest.
         tvdir = get_toxvenv_dir(ctx)
-        ctx.cluster.only(client).run(args=[ 'virtualenv', tvdir ])
+        ctx.cluster.only(client).run(args=[ 'virtualenv', '-p', 'python3', tvdir ])
         ctx.cluster.only(client).run(args=
             [   'source', '{tvdir}/bin/activate'.format(tvdir=tvdir),
                 run.Raw('&&'),