When built without tests, run a smoke test and bundled() Provides verification
This commit is contained in:
parent
fb213c6f74
commit
be83e98e05
@ -311,11 +311,16 @@ mkdir -p %{buildroot}%{python_wheel_dir}
|
||||
install -p dist/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir}
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
# Verify bundled provides are up to date
|
||||
%{_rpmconfigdir}/pythonbundles.py src/pip/_vendor/vendor.txt --compare-with '%{bundled 3}'
|
||||
|
||||
# Verify we can at least run basic commands without crashing
|
||||
%{py3_test_envvars} %{buildroot}%{_bindir}/pip --help
|
||||
%{py3_test_envvars} %{buildroot}%{_bindir}/pip list
|
||||
%{py3_test_envvars} %{buildroot}%{_bindir}/pip show pip
|
||||
|
||||
%if %{with tests}
|
||||
# Upstream tests
|
||||
# bash completion tests only work from installed package
|
||||
pytest_k='not completion'
|
||||
|
Loading…
Reference in New Issue
Block a user