diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/plans/tests.fmf b/plans/tests.fmf deleted file mode 100644 index 2cf54e9..0000000 --- a/plans/tests.fmf +++ /dev/null @@ -1,10 +0,0 @@ -prepare: - how: install - package: - - python3-pidfile - -discover: - how: fmf - -execute: - how: tmt diff --git a/python-pidfile.spec b/python-pidfile.spec index cdd5956..0c6f78f 100644 --- a/python-pidfile.spec +++ b/python-pidfile.spec @@ -2,7 +2,7 @@ %global pypi_name python-%{module_name} Name: %{pypi_name} Version: 3.0.0 -Release: 15%{?dist} +Release: 11%{?dist} Summary: Python context manager for managing pid files License: MIT URL: https://pypi.org/project/python-pidfile @@ -45,18 +45,6 @@ cp -p %{SOURCE1} . %license LICENSE %changelog -* Fri Sep 19 2025 Python Maint - 3.0.0-15 -- Rebuilt for Python 3.14.0rc3 bytecode - -* Fri Aug 15 2025 Python Maint - 3.0.0-14 -- Rebuilt for Python 3.14.0rc2 bytecode - -* Fri Jul 25 2025 Fedora Release Engineering - 3.0.0-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Tue Jun 03 2025 Python Maint - 3.0.0-12 -- Rebuilt for Python 3.14 - * Sat Jan 18 2025 Fedora Release Engineering - 3.0.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/tests/test.fmf b/tests/test.fmf deleted file mode 100644 index 4979eeb..0000000 --- a/tests/test.fmf +++ /dev/null @@ -1 +0,0 @@ -test: python3 test_pidfile.py /tmp/test.log diff --git a/tests/test_playbook.yml b/tests/test_playbook.yml new file mode 100644 index 0000000..32429af --- /dev/null +++ b/tests/test_playbook.yml @@ -0,0 +1,28 @@ +- hosts: localhost + vars: + config: + packagename: python-pidfile + testfilename: test_pidfile.py + logfilepath: /tmp/test.log + artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}" + tags: + - classic + remote_user: root + tasks: + - name: Install required package + dnf: + name: + - "{{ config.packagename }}" + - python3 + - name: Test Execution + block: + - name: Execute the tests + command: python3 {{ config.testfilename }} {{ logfilepath }} + always: + - name: Pull out the artifacts + fetch: + dest: "{{ config.artifacts }}/" + src: "{{ item }}" + flat: yes + with_items: + - "{{ config.logfilepath }}" diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..8da8402 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: test_playbook.yml