From ac6c734e151735dffb8b1a450ab56d2ad8144c4e Mon Sep 17 00:00:00 2001 From: Javier Pena Date: Tue, 20 Sep 2016 10:48:28 +0200 Subject: [PATCH] Fix Tempest test execution https://review.openstack.org/348511 changed the way 'tox -eall' was used when calling Tempest. We need to update the command-line used by Packstack to adapt to it. Change-Id: I1d2e00d6c4a8483ad90cfffe07bf6eb461473c88 --- packstack/plugins/postscript_951.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packstack/plugins/postscript_951.py b/packstack/plugins/postscript_951.py index eb0e88a2e..d17527c06 100644 --- a/packstack/plugins/postscript_951.py +++ b/packstack/plugins/postscript_951.py @@ -56,7 +56,8 @@ def run_tempest(config, messages): print("Running Tempest on %s" % config['CONFIG_TEMPEST_HOST']) server = utils.ScriptRunner(config['CONFIG_TEMPEST_HOST']) server.append('pushd /var/lib/tempest') - server.append('tox -eall -- --concurrency=2 %s > %s' - % (config['CONFIG_RUN_TEMPEST_TESTS'], logfile)) + server.append('tox -eall \'(%s)\' -- --concurrency=2 > %s' + % (config['CONFIG_RUN_TEMPEST_TESTS'].replace(' ', '|'), + logfile)) server.append('popd') server.execute()