From 8c90b2f4eca02576bec4ac84fa617db1279b2602 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Wed, 28 Jul 2021 16:50:56 -0400 Subject: [PATCH] Remove check test and add gating test Remove the check test from the spec file, and add a gating test. Resolves: rhbz#1986608 Signed-off-by: Bryan Gurney --- gating.yaml | 6 ++++++ python-dbus-python-client-gen.spec | 14 ++++++-------- tests/tests.yml | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 gating.yaml create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..648918d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/python-dbus-python-client-gen.spec b/python-dbus-python-client-gen.spec index 1e6c979..103fad0 100644 --- a/python-dbus-python-client-gen.spec +++ b/python-dbus-python-client-gen.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 0.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python Library for Generating dbus-python Client Code License: MPLv2.0 @@ -21,10 +21,6 @@ Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-dbus -BuildRequires: python3-into-dbus-python >= 0.08 -Requires: python3-dbus -Requires: python3-into-dbus-python >= 0.08 %description -n python3-%{srcname} %{_description} @@ -39,9 +35,6 @@ Python 3 version. %install %py3_install -%check -PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m unittest discover --verbose tests - %files -n python3-%{srcname} %license LICENSE %doc README.rst @@ -49,6 +42,11 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m unittest discover --verb %{python3_sitelib}/dbus_python_client_gen-*.egg-info/ %changelog +* Thu Jul 29 2021 Bryan Gurney - 0.8-4 +- Remove check test +- Remove BuildRequires for python3-dbus and python3-into-dbus-python +- Resolves: rhbz#1986608 + * Fri Apr 16 2021 Mohan Boddu - 0.8-3 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..edf5bc7 --- /dev/null +++ b/tests/tests.yml @@ -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 discover --verbose tests