14
0

- The tests are failing in the release but work on the git

so lets hope there is some release in future that will allow
  us to enable them

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testrepository?expand=0&rev=39
This commit is contained in:
Tomáš Chvátal
2019-03-26 10:43:36 +00:00
committed by Git OBS Bridge
parent 66881e7b73
commit bfd18575ef
2 changed files with 16 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testresources}
BuildRequires: %{python_module testscenarios}
BuildRequires: %{python_module testtools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-dbm
Requires: python-dbm
@@ -71,10 +72,17 @@ subunit or be converted into a subunit stream can be accepted).
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/testr
%check
%python_exec setup.py test
#mv .testr.conf .testr.conf.orig
#%%{python_expand # first line can't be empty
#rm -rf .testrepository
#sed 's/python/$python/' .testr.conf.orig >| .testr.conf
#$python ./testr init
#$python ./testr run --parallel
#}
%post
%python_install_alternative testr