From: Kefu Chai Date: Sun, 24 May 2020 17:04:37 +0000 (+0800) Subject: qa/tasks/tox: use python3 for tox tests X-Git-Tag: v14.2.10~17^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8f18a17701bfb5ec9dd1f419f9e68dbd079a363f;p=ceph.git qa/tasks/tox: use python3 for tox tests both tempest and keystone have dropped python2 support in their tox based tests. Signed-off-by: Kefu Chai (cherry picked from commit b7152e8e943b713e779aec0c2414986bd556a423) --- diff --git a/qa/tasks/tox.py b/qa/tasks/tox.py index 81d712f44b193..efb64f7a22d93 100644 --- a/qa/tasks/tox.py +++ b/qa/tasks/tox.py @@ -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('&&'),