From 6938fa1384489b329ef343228e18c784d2c0bdf8 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Fri, 9 Apr 2021 07:29:58 +0000 Subject: [PATCH] Group execution of SQL functional tests Functional SQL tests (MySQL and PostgreSQL) use the DB installed backend. To avoid overloading the DB engine, the test cases are grouped [1] together and executed by the same worker process. That will ensure those tests are not executed in parallel, interfering each other. Classes that are grouped: - TestModelsMigrationsMysql - TestModelsMigrationsPsql [1]https://stestr.readthedocs.io/en/latest/MANUAL.html#group-regex Related-Bug: #1687027 Change-Id: If04e360c01cdb16e956d16357e2181db55445137 (cherry picked from commit 7326fd622f2c3cb36681136d79e39e4efdda5411) --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index f717bcd5e37..dfe027b8977 100644 --- a/tox.ini +++ b/tox.ini @@ -73,7 +73,7 @@ deps = {[testenv:functional]deps} commands = {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin - stestr run {posargs} + stestr run --group_regex=neutron\.tests\.functional\.db\.test_migrations\.(TestModelsMigrationsPsql|TestModelsMigrationsMysql) {posargs} [testenv:dsvm-functional-python27] basepython = python2.7