tests: Enable the pykickstart unit tests

These now work fine in a mock environment and provide excellent
coverage.
This commit is contained in:
Brian C. Lane 2023-02-21 10:55:24 -08:00
parent a818771e25
commit b1da39fe21
2 changed files with 4 additions and 22 deletions

View File

@ -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.44
@ -53,7 +52,7 @@ make PYTHON=%{__python3} DESTDIR=%{buildroot} install
%check
%if %{with runtests}
make PYTHON=%{__python3} test
LC_ALL=C make PYTHON=%{__python3} test
%endif
%files

View File

@ -1,17 +0,0 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- fedpkg
- python3-sphinx
- python3-coverage
tests:
- simple:
dir: scripts/
run: ./run_tests.sh