From e326a0612f21f353091d1d6aacc45167f8cee3a8 Mon Sep 17 00:00:00 2001 From: ghanshyam Date: Mon, 12 Sep 2016 15:25:08 +0900 Subject: [PATCH] Put the regex first This commit add regex first while running tempest tox There is changes in way tempest tox runs tests by using the tempest run command directly instead of some bash script. With tempest run you specify a regex with a '--regex' parameter and to keep backwards compatibility this is added to the tempest tox definitions. But in gnocchi post_test_hook regex is being used after concurrency and ends up having a call equivalent to: tempest run --regex --concurrency=2 gnocchi which obviously is incorrect. Simply switching the arg order should work here. Change-Id: Ibaffa3a8568ea058d964463df4b76196c4d2bc7a Need-by: I3684fce66a799579fa68af119652cafef25a9f03 --- devstack/gate/post_test_hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/gate/post_test_hook.sh b/devstack/gate/post_test_hook.sh index 6fe8e139..9c3ff39a 100755 --- a/devstack/gate/post_test_hook.sh +++ b/devstack/gate/post_test_hook.sh @@ -57,7 +57,7 @@ sudo chown -R tempest:stack $BASE/data/tempest # Run tests with tempst cd $BASE/new/tempest set +e -sudo -H -u tempest OS_TEST_TIMEOUT=$TEMPEST_OS_TEST_TIMEOUT tox -eall-plugin -- --concurrency=$TEMPEST_CONCURRENCY gnocchi +sudo -H -u tempest OS_TEST_TIMEOUT=$TEMPEST_OS_TEST_TIMEOUT tox -eall-plugin -- gnocchi --concurrency=$TEMPEST_CONCURRENCY TEMPEST_EXIT_CODE=$? set -e if [[ $TEMPEST_EXIT_CODE != 0 ]]; then