From f11d225425c090c97a107ad667d4119ea80e11a7 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Wed, 28 Jul 2021 11:48:15 -0400 Subject: [PATCH] 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 --- gating.yaml | 6 ++++++ python-dbus-client-gen.spec | 10 +++++----- tests/tests.yml | 14 ++++++++++++++ 3 files changed, 25 insertions(+), 5 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-client-gen.spec b/python-dbus-client-gen.spec index 77e612d..ca83d55 100644 --- a/python-dbus-client-gen.spec +++ b/python-dbus-client-gen.spec @@ -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 - 0.5-4 +- Remove check test +- Resolves: rhbz#1986607 + * Fri Apr 16 2021 Mohan Boddu - 0.5-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..0b83ab3 --- /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 -v tests/test_deterministic.py