commit bf17984d9847346553c86021410707ff06cd5309 Author: Javier Pena Date: Fri Oct 9 15:43:09 2020 +0200 neutron: reduce the number of unit tests run in RDO When unit tests take longer than 60 minutes, we see errors in the RDO CI. This commit removes some tests from the list, to keep the execution length below the limit. Change-Id: I11d61dfb642b04963911edc301704d7235f60bcf diff --git a/openstack/neutron/neutron.spec.j2 b/openstack/neutron/neutron.spec.j2 index a08a437..2c886f3 100644 --- a/openstack/neutron/neutron.spec.j2 +++ b/openstack/neutron/neutron.spec.j2 @@ -415,7 +415,12 @@ exit 0 %check # don't want to depend on hacking for package building rm neutron/tests/unit/hacking/test_checks.py +%if 0%{?suse_version} python3 -m stestr.cli --test-path neutron/tests/unit run +%else +# NOTE(jpena): Reduce the number of unit tests, we have issues when testing time goes > 1h +python3 -m stestr.cli --test-path neutron/tests/unit run --black-regex '(neutron.tests.unit.objects|neutron.tests.unit.plugins)' +%endif %post %tmpfiles_create %{_tmpfilesdir}/%{name}.conf