Remove check tests and add gating tests

Remove the check test from the spec file, and add gating tests.

Resolves: rhbz#1986607

Signed-off-by: Bryan Gurney <bgurney@redhat.com>
This commit is contained in:
Bryan Gurney 2021-07-28 11:48:15 -04:00
parent 4bc6a12a12
commit f11d225425
3 changed files with 25 additions and 5 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,9 +1,8 @@
%{?python_enable_dependency_generator}
%global srcname dbus-client-gen
Name: python-%{srcname}
Version: 0.5
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Library for Generating D-Bus Client Code
License: MPLv2.0
@ -40,9 +39,6 @@ Python 3 version.
%install
%py3_install
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m unittest --verbose tests/test_deterministic.py
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
@ -50,6 +46,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m unittest --verbose tests
%{python3_sitelib}/dbus_client_gen-*.egg-info/
%changelog
* Wed Jul 28 2021 Bryan Gurney <bgurney@redhat.com> - 0.5-4
- Remove check test
- Resolves: rhbz#1986607
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.5-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937

14
tests/tests.yml Normal file
View File

@ -0,0 +1,14 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: ./source
run: python -m unittest -v tests/test_deterministic.py