Add gating with tmt smoke test

Check very simple usage (basically just import works)

Related: RHEL-677
This commit is contained in:
Lukas Zachar 2021-07-19 16:44:56 +02:00 committed by Lumir Balhar
parent 8eac9ee276
commit 28a2bb51de
5 changed files with 21 additions and 1 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

4
plans.fmf Normal file
View File

@ -0,0 +1,4 @@
discover:
how: fmf
execute:
how: tmt

View File

@ -13,7 +13,7 @@
Name: pytz
Version: 2017.2
Release: 10%{?dist}
Release: 11%{?dist}
Summary: World Timezone Definitions for Python
Group: Development/Languages
@ -138,6 +138,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%changelog
* Thu Jul 13 2023 Lumír Balhar <lbalhar@redhat.com> - 2017.2-11
- Bump to add gating
Related: RHEL-677
* Tue Jun 27 2023 Lumír Balhar <lbalhar@redhat.com> - 2017.2-10
- Fix FTBFS with newest tzdata
Resolves: RHEL-677

5
tests/smoke.fmf Normal file
View File

@ -0,0 +1,5 @@
test: python3 -c 'import pytz; assert str(pytz.utc.zone) == "UTC"'
framework: shell
require:
- python3-pytz
- python3