diff --git a/rpmlint.spec b/rpmlint.spec index d7fdd6b..9afaa2f 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -1,4 +1,5 @@ -%bcond_with tests +# pass --without tests to skip the test suite +%bcond_without tests Name: rpmlint Version: 2.3.0 @@ -50,6 +51,9 @@ sed -i 's/python-magic/file-magic/g' setup.py # Don't lint the code or measure coverage in %%check sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg +# Avoid warnings about pytest.mark.no_cover marker +sed -i '/^@pytest.mark.no_cover/d' test/test_lint.py + %build %py3_build @@ -76,6 +80,7 @@ cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{buildroot}%{_sysc * Sat Sep 24 2022 Todd Zullinger - 2.3.0-1 - update to 2.3.0 (rhbz#2088759) - convert license to SPDX and correct to GPL-2.0-or-later +- enable tests by default, avoid warnings about pytest.mark.no_cover marker * Sat Sep 24 2022 Tom Callaway - 2.2.0-7 - update licenses.toml to reflect change in Fedora licensing identifiers