From 8f18a17701bfb5ec9dd1f419f9e68dbd079a363f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 25 May 2020 01:04:37 +0800 Subject: [PATCH] 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) --- qa/tasks/tox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/tox.py b/qa/tasks/tox.py index 81d712f44b1..efb64f7a22d 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('&&'), -- 2.47.3