#3 Run python2 tests with python2, python3 with python3
Closed 5 years ago by churchyard. Opened 5 years ago by churchyard.
rpms/ churchyard/python-oslo-db py23  into  master

file modified
+2 -5
@@ -77,9 +77,6 @@ 

  %package -n python2-%{pkg_name}-tests

  Summary:    test subpackage for the Oslo database handling library

  

- # FIXME(hguemar): required or tests will fail

- # should be unnecessary with Rocky version

- BuildRequires:  python-unversioned-command

  Requires:  python2-%{pkg_name} = %{version}-%{release}

  Requires:  python2-oslo-utils

  Requires:  python2-oslo-config
@@ -198,10 +195,10 @@ 

  %find_lang oslo_db --all-name

  

  %check

- %{__python2} setup.py test

+ PYTHON=%{__python2} %{__python2} setup.py test

  %if 0%{?with_python3}

  rm -rf .testrepository

- %{__python3} setup.py test

+ PYTHON=%{__python3} %{__python3} setup.py test

  %endif

  

  %files -n python2-%{pkg_name}

Instead of running them both with "python"

Actually this test runner issue have been fixed in the upcoming OpenStack release which is scheduled early september.
I still have plenty of packages to fix before tomorrow's deadline.

I still have plenty of packages to fix before tomorrow's deadline.

If you refer to https://pagure.io/fesco/issue/1965 you just need to set the bug to ASSIGNED before the deadline.

Pull-Request has been closed by churchyard

5 years ago