From d7dbb64f3038f0f28b0562d5a7a1769dbebe2a69 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 14:53:13 +0000 Subject: [PATCH 1/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 794f07a2cf403491b148757ec60a8f237e3c332f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Fri, 4 Jul 2025 12:06:17 +0200 Subject: [PATCH 2/4] tests/test-of-functionality-of-crontabs: fix the test --- tests/test-of-functionality-of-crontabs/runtest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 tests/test-of-functionality-of-crontabs/runtest.sh diff --git a/tests/test-of-functionality-of-crontabs/runtest.sh b/tests/test-of-functionality-of-crontabs/runtest.sh old mode 100644 new mode 100755 index 98548b2..7026acd --- a/tests/test-of-functionality-of-crontabs/runtest.sh +++ b/tests/test-of-functionality-of-crontabs/runtest.sh @@ -39,6 +39,7 @@ rlJournalStart user="petr$RANDOM" rlRun "rm -rf /tmp/test.createdbypetr /tmp/test.createdbyroot" 0 "Removing tmp directory" rlRun "useradd $user" + rlRun "rlServiceStart crond" rlFileBackup /etc/crontab rlPhaseEnd @@ -76,7 +77,8 @@ rlJournalStart rlPhaseStartCleanup rlRun "rm -rf /tmp/test.createdbypetr /tmp/test.createdbyroot" 0 "Removing tmp directory" - rlRun "userdel -r $user" + rlRun "userdel -rf $user" + rlRun "rlServiceRestore crond" rlFileRestore rlPhaseEnd rlJournalPrintText From 35e7c6914c9446f19055c7d40e8e1e3b7e64ffd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Fri, 4 Jul 2025 12:06:49 +0200 Subject: [PATCH 3/4] tests: migrate from STI to TMT Related: https://fedoraproject.org/wiki/Changes/DisableSTI --- .fmf/version | 1 + plans/ci.fmf | 5 +++++ tests/test-of-functionality-of-crontabs/main.fmf | 12 ++++++++++++ tests/test-of-functionality-of-crontabs/runtest.sh | 3 +-- tests/tests.yml | 12 ------------ 5 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 .fmf/version create mode 100644 plans/ci.fmf create mode 100644 tests/test-of-functionality-of-crontabs/main.fmf delete mode 100644 tests/tests.yml 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/plans/ci.fmf b/plans/ci.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/ci.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/test-of-functionality-of-crontabs/main.fmf b/tests/test-of-functionality-of-crontabs/main.fmf new file mode 100644 index 0000000..30aff61 --- /dev/null +++ b/tests/test-of-functionality-of-crontabs/main.fmf @@ -0,0 +1,12 @@ +summary: test of functionality of crontabs +description: '' +contact: Petr Sklenar +component: + - crontabs +test: ./runtest.sh +framework: beakerlib +recommend: + - crontabs +duration: 30m +extra-summary: /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs +extra-task: /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs diff --git a/tests/test-of-functionality-of-crontabs/runtest.sh b/tests/test-of-functionality-of-crontabs/runtest.sh index 7026acd..0090593 100755 --- a/tests/test-of-functionality-of-crontabs/runtest.sh +++ b/tests/test-of-functionality-of-crontabs/runtest.sh @@ -27,8 +27,7 @@ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Include rhts environment -. /usr/bin/rhts-environment.sh -. /usr/lib/beakerlib/beakerlib.sh +. /usr/share/beakerlib/beakerlib.sh || exit 1 PACKAGE="crontabs" #how long should we wait: diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 22f9d4d..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -# This first play always runs on the local staging system -- hosts: localhost - roles: - - role: standard-test-beakerlib - tags: - - classic - tests: - - test-of-functionality-of-crontabs - required_packages: - - crontabs # test-of-functionality-of-crontabs needs crontabs - - findutils # beakerlib needs find command From 4e4933fc09faa0dfe07da1499336073ff3676442 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 18:50:30 +0000 Subject: [PATCH 4/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild