]> 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>
Wed, 3 Jun 2020 11:57:01 +0000 (19:57 +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 b7152e8e943b713e779aec0c2414986bd556a423)

qa/tasks/tox.py

index 81d712f44b193bba811322e4c301a171c23bfd9a..efb64f7a22d938a50240e101e76161da306627c3 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('&&'),