Use tmt for gating
This commit is contained in:
parent
48b8febe13
commit
7e316dc2a3
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
@ -3,4 +3,4 @@ product_versions:
|
|||||||
- rhel-9
|
- rhel-9
|
||||||
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
16
plan.fmf
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
summary: Basic smoke test
|
||||||
|
discover:
|
||||||
|
how: shell
|
||||||
|
tests:
|
||||||
|
- name: /smoke/import-python-module
|
||||||
|
test: |
|
||||||
|
python3 -c 'import importlib as il; print(il.import_module("lxml"))'
|
||||||
|
- name: /smoke/etree-fromstring
|
||||||
|
test: |
|
||||||
|
python3 tests/etree-fromstring.py
|
||||||
|
prepare:
|
||||||
|
how: install
|
||||||
|
package:
|
||||||
|
- python3-lxml
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
7
tests/etree-fromstring.py
Normal file
7
tests/etree-fromstring.py
Normal 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()
|
||||||
Loading…
Reference in New Issue
Block a user