From f9cba9bd09f1b520ef3ac121a3a7850cf640f614 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Tue, 13 Dec 2016 21:54:42 +0100 Subject: [PATCH] tests: don't run functional tests in parallel kafka doesn't play well with //, each times a new partition/topic is created, kafka rebalances things across brokers and messages are not delivered at the expected time. So this change disable the parallelizism for functional tests for kafka only. Change-Id: Ia497334efcd4685850ac1529a7fc38073dae7cd1 --- .testr.conf | 1 + tox.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/.testr.conf b/.testr.conf index 80e7ea849..6b66beff6 100644 --- a/.testr.conf +++ b/.testr.conf @@ -2,3 +2,4 @@ test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list +group_regex=${OS_GROUP_REGEX} diff --git a/tox.ini b/tox.ini index 5b0365dcb..dc4cbaf53 100644 --- a/tox.ini +++ b/tox.ini @@ -55,6 +55,7 @@ commands = pifpaf run rabbitmq -- python setup.py testr --slowest --testr-args= setenv = {[testenv]setenv} TRANSPORT_DRIVER=kafka + OS_GROUP_REGEX=oslo_messaging.tests.functional kafka-python>=1.3.1 commands = {toxinidir}/setup-test-env-kafka.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'