From 19b5fa67a2d7a827c13b5d07203e499ca66c9b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zachar?= Date: Thu, 9 Jul 2026 15:30:30 +0200 Subject: [PATCH] Use tmt for gating --- .fmf/version | 1 + gating.yaml | 2 +- plan.fmf | 16 ++++++++++++++++ tests/etree-fromstring.py | 7 +++++++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .fmf/version create mode 100644 plan.fmf create mode 100644 tests/etree-fromstring.py 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 eb7c84f..6985029 100644 --- a/gating.yaml +++ b/gating.yaml @@ -3,4 +3,4 @@ product_versions: - rhel-8 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..fe87da0 --- /dev/null +++ b/plan.fmf @@ -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 diff --git a/tests/etree-fromstring.py b/tests/etree-fromstring.py new file mode 100644 index 0000000..b400cc0 --- /dev/null +++ b/tests/etree-fromstring.py @@ -0,0 +1,7 @@ +import lxml.etree as et +s = 'ac' +x = et.fromstring(s) +t = x.find('bar').text +print(t) +if t != 'abc': + raise Exception()