Convert sti to tmt for gating

This commit is contained in:
Lukáš Zachar 2026-07-23 15:59:25 +02:00
parent 2f0a1a8b88
commit 572735844c
4 changed files with 27 additions and 30 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -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}

24
plan.fmf Normal file
View File

@ -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

View File

@ -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