Add gating test and remove check test

Resolves: rhbz#1988144

Signed-off-by: Bryan Gurney <bgurney@redhat.com>
This commit is contained in:
Bryan Gurney 2021-07-30 12:02:07 -04:00
parent 6a49feba52
commit ff62e76df2
3 changed files with 27 additions and 11 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,10 +1,8 @@
%bcond_without tests
%global pypi_name wcwidth %global pypi_name wcwidth
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.2.5 Version: 0.2.5
Release: 4%{?dist} Release: 5%{?dist}
Summary: Measures number of Terminal column cells of wide-character codes Summary: Measures number of Terminal column cells of wide-character codes
License: MIT License: MIT
@ -21,9 +19,6 @@ printable width of a string on a Terminal.
Summary: %{summary} Summary: %{summary}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
%endif
%{?python_provide:%python_provide python3-%{pypi_name}} %{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %description -n python3-%{pypi_name}
@ -40,11 +35,6 @@ printable width of a string on a Terminal.
%install %install
%py3_install %py3_install
%if %{with tests}
%check
%{__python3} -m pytest -v
%endif
%files -n python3-%{pypi_name} %files -n python3-%{pypi_name}
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
@ -52,6 +42,10 @@ printable width of a string on a Terminal.
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog %changelog
* Mon Aug 01 2021 Bryan Gurney <bgurney@redhat.com> - 0.2.5-5
- Remove check test
- Resolves: rhbz#1988144
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.2.5-4 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.2.5-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937

16
tests/tests.yml Normal file
View File

@ -0,0 +1,16 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- classic
required_packages:
- python3-pytest
tests:
- simple:
dir: ./source
run: python -m pytest -v