Use tmt for gating
This commit is contained in:
parent
7d11a7576c
commit
19b5fa67a2
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
@ -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}
|
||||
|
||||
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: |
|
||||
/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
|
||||
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