From 1da80fb36722f1dea5a571301ce56163746d01c9 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 874f8b79e5a52a868b5e6ef2ba7fd4f88817e3a0) --- 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 9a19cb6db3f52..36c226d0b2e6e 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.39.5