From 249ede08669cc866fb6ae84d38a04c8f37d28c50 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Tue, 22 Feb 2022 18:39:11 +0100 Subject: [PATCH] Add gating configuration and a simple smoke test Related: rhbz#1950291 --- .fmf/version | 1 + gating.yaml | 6 ++++++ plans.fmf | 11 +++++++++++ pytest.spec | 6 +++++- 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 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/plans.fmf b/plans.fmf new file mode 100644 index 0000000..c5c5f7a --- /dev/null +++ b/plans.fmf @@ -0,0 +1,11 @@ +discover: + - name: Smoke-tests + how: shell + tests: + - name: python-import-test + test: python3 -c 'import pytest' + require: + - python3-pytest + duration: 1m +execute: + how: tmt diff --git a/pytest.spec b/pytest.spec index f9518fa..9114740 100644 --- a/pytest.spec +++ b/pytest.spec @@ -1,6 +1,6 @@ Name: pytest Version: 6.2.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Simple powerful testing with Python License: MIT URL: https://pytest.org @@ -158,6 +158,10 @@ export INPUTRC=$PWD/.inputrc %{python3_sitelib}/pytest/ %changelog +* Tue Feb 22 2022 Tomas Orsava - 6.2.2-6 +- Add gating configuration and a simple smoke test +- Related: rhbz#1950291 + * Tue Feb 08 2022 Tomas Orsava - 6.2.2-5 - Add automatically generated Obsoletes tag with the python39- prefix for smoother upgrade from RHEL8