tests: Enable the pykickstart unit tests
These now work fine in a mock environment and provide excellent coverage.
This commit is contained in:
parent
a818771e25
commit
b1da39fe21
@ -1,7 +1,6 @@
|
|||||||
# Disable tests by default because they fail to run inside mock builds
|
# Enable tests by default. To disable them use:
|
||||||
# at the moment, but can run locally. To build and run tests, do:
|
# rpmbuild -ba --without runtests pykickstart.spec
|
||||||
# rpmbuild -ba --with runtests pykickstart.spec
|
%bcond_without runtests
|
||||||
%bcond_with runtests
|
|
||||||
|
|
||||||
Name: pykickstart
|
Name: pykickstart
|
||||||
Version: 3.44
|
Version: 3.44
|
||||||
@ -53,7 +52,7 @@ make PYTHON=%{__python3} DESTDIR=%{buildroot} install
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with runtests}
|
%if %{with runtests}
|
||||||
make PYTHON=%{__python3} test
|
LC_ALL=C make PYTHON=%{__python3} test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user