Use tmt for gating

This commit is contained in:
Lukáš Zachar 2026-07-09 15:30:30 +02:00
parent 7d11a7576c
commit 19b5fa67a2
4 changed files with 25 additions and 1 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -3,4 +3,4 @@ product_versions:
- rhel-8 - rhel-8
decision_context: osci_compose_gate decision_context: osci_compose_gate
rules: rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

16
plan.fmf Normal file
View File

@ -0,0 +1,16 @@
summary: Basic smoke test
discover:
how: shell
tests:
- name: /smoke/import-python-module
test: |
/usr/libexec/platform-python -c 'import importlib as il; print(il.import_module("lxml"))'
- name: /smoke/etree-fromstring
test: |
/usr/libexec/platform-python tests/etree-fromstring.py
prepare:
how: install
package:
- python3-lxml
execute:
how: tmt

View File

@ -0,0 +1,7 @@
import lxml.etree as et
s = '<foo><bar baz="xyzzy">a<![CDATA[b]]>c</bar></foo>'
x = et.fromstring(s)
t = x.find('bar').text
print(t)
if t != 'abc':
raise Exception()