From e7e4023b1445e053b5b7aa4ef48fbb0b11708497 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Mon, 15 May 2023 16:42:12 +0200 Subject: [PATCH] Replace whole repo with latest content from branch rhel-8.8.0 Content corresponds with RHEL dist-git commit b4ada95 --- .fmf/version | 1 + .gitignore | 2 ++ plans/etree-fromstring.py | 7 +++++++ plans/smoke.fmf | 12 ++++++++++++ 4 files changed, 22 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/etree-fromstring.py create mode 100644 plans/smoke.fmf 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/.gitignore b/.gitignore index 2d5a451..d2660f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +/lxml-4.9.1.tar.gz +/lxml-4.9.2.tar.gz /lxml-4.9.2-no-isoschematron.tar.gz diff --git a/plans/etree-fromstring.py b/plans/etree-fromstring.py new file mode 100644 index 0000000..b400cc0 --- /dev/null +++ b/plans/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() diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..3ac2b3d --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,12 @@ +summary: Basic smoke test +discover: + how: shell + tests: + - name: /smoke/import-python-module + test: | + python3.11 -c 'import importlib as il; print(il.import_module("lxml"))' + - name: /smoke/etree-fromstring + test: | + python3.11 plans/etree-fromstring.py +execute: + how: tmt