diff --git a/openstack/openstacksdk/openstacksdk.spec.j2 b/openstack/openstacksdk/openstacksdk.spec.j2 index cb8bfe978..384b26065 100644 --- a/openstack/openstacksdk/openstacksdk.spec.j2 +++ b/openstack/openstacksdk/openstacksdk.spec.j2 @@ -2,7 +2,9 @@ {% set upstream_version = upstream_version('0.40.0') %} {% set rpm_release = '1' %} {% set source = url_pypi() %} - +# FIXME(jpena): unit tests require way too much memory +# and cause timeouts due to swapping. Disabling for now +%define with_tests 0 Name: {{ py2name() }} Version: {{ py2rpmversion() }} Release: {{ py2rpmrelease() }} @@ -125,10 +127,12 @@ rm -rf doc/build/html/.{doctrees,buildinfo} %install %py3_install +%if 0%{?with_tests} %check export OS_LOG_CAPTURE=true export OS_TEST_TIMEOUT=30 python3 -m stestr.cli run +%endif %files -n {{ py2name(py_versions='py3') }} %license LICENSE