From 572735844cabd6a2d99b73f74053ba5059595a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zachar?= Date: Thu, 23 Jul 2026 15:59:25 +0200 Subject: [PATCH] Convert sti to tmt for gating --- .fmf/version | 1 + gating.yaml | 3 ++- plan.fmf | 24 ++++++++++++++++++++++++ tests/tests.yml | 29 ----------------------------- 4 files changed, 27 insertions(+), 30 deletions(-) create mode 100644 .fmf/version create mode 100644 plan.fmf delete mode 100644 tests/tests.yml 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 index c190bde..5d120c8 100644 --- a/gating.yaml +++ b/gating.yaml @@ -3,4 +3,5 @@ product_versions: - rhel-9 decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + diff --git a/plan.fmf b/plan.fmf new file mode 100644 index 0000000..4f5eb6a --- /dev/null +++ b/plan.fmf @@ -0,0 +1,24 @@ +execute: + how: tmt + +discover: + how: shell + tests: + - name: pytest + test: PYTHONPATH=/usr/lib/rpm/redhat ALTERNATE_PYTHON_VERSION=3.11 pytest -v + - name: manual_byte_compilation + test: rpmbuild -ba pythontest.spec + path: /tests + +prepare: + - how: install + package: + - rpm-build + - python-rpm-macros + - python3-rpm-macros + - python3-devel + - python3-pytest + - python3.11-devel + - dnf + - how: shell + script: dnf upgrade -y diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 878ef49..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -- hosts: localhost - tags: - - classic - tasks: - - dnf: - name: "*" - state: latest - -- hosts: localhost - roles: - - role: standard-test-basic - tags: - - classic - tests: - - pytest: - dir: . - run: PYTHONPATH=/usr/lib/rpm/redhat ALTERNATE_PYTHON_VERSION=3.11 pytest -v - - manual_byte_compilation: - dir: . - run: rpmbuild -ba pythontest.spec - required_packages: - - rpm-build - - python-rpm-macros - - python3-rpm-macros - - python3-devel - - python3-pytest - - python3.11-devel -