diff --git a/pykickstart.spec b/pykickstart.spec index d7ab59e..35b70e4 100644 --- a/pykickstart.spec +++ b/pykickstart.spec @@ -1,7 +1,6 @@ -# Disable tests by default because they fail to run inside mock builds -# at the moment, but can run locally. To build and run tests, do: -# rpmbuild -ba --with runtests pykickstart.spec -%bcond_with runtests +# Enable tests by default. To disable them use: +# rpmbuild -ba --without runtests pykickstart.spec +%bcond_without runtests Name: pykickstart Version: 3.32.12 @@ -26,7 +25,6 @@ BuildRequires: make # Only required when building with runtests %if %{with runtests} -BuildRequires: python3-coverage BuildRequires: python3-sphinx %endif @@ -55,7 +53,7 @@ make PYTHON=%{__python3} DESTDIR=%{buildroot} install %check %if %{with runtests} -make PYTHON=%{__python3} test +LC_ALL=C make PYTHON=%{__python3} test-no-coverage %endif %files diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index e1be03f..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- hosts: localhost - tags: - - classic - roles: - - role: standard-test-source - - role: standard-test-basic - required_packages: - - python3-kickstart - tests: - - simple: - run: ./run_tests.sh {{ tenv_workdir }}