From 674123543057f3179ffb98aafff6bd14abbc6562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 24 Mar 2022 13:32:41 +0100 Subject: [PATCH 1/2] TEST-68: get rid of unnecessary descriptions The name of the unit already says all, no need to duplicate this. And the comments can easily get out of date, as they did. --- test/units/testsuite-68.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/units/testsuite-68.sh b/test/units/testsuite-68.sh index 3072a94575..3e3208eb85 100755 --- a/test/units/testsuite-68.sh +++ b/test/units/testsuite-68.sh @@ -25,10 +25,8 @@ wait_on_state_or_fail () { systemd-analyze log-level debug -# Trigger testservice-failure-exit-handler-68.service cat >/run/systemd/system/testservice-failure-68.service </run/systemd/system/testservice-failure-68-template.service </run/systemd/system/testservice-success-68.service </run/systemd/system/testservice-success-68-template.service </run/systemd/system/testservice-success-exit-handler-68.service </run/systemd/system/testservice-success-exit-handler-68-template@.service </run/systemd/system/testservice-failure-exit-handler-68.service </run/systemd/system/testservice-failure-exit-handler-68-template@.service < Date: Thu, 24 Mar 2022 13:45:03 +0100 Subject: [PATCH 2/2] TEST-68: instead of calling daemon-reload, just use different cleanup units On a very slow machine, things are executed out-of-order, and something pins the previously-exited unit. Instead of fighting with this with daemon-reload, let's just use a different cleanup unit. Hopefully fixes #22755. --- test/units/testsuite-68.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/test/units/testsuite-68.sh b/test/units/testsuite-68.sh index 3e3208eb85..fefb03035e 100755 --- a/test/units/testsuite-68.sh +++ b/test/units/testsuite-68.sh @@ -102,6 +102,9 @@ ExecStartPre=/tmp/check_on_success.sh ExecStart=/tmp/check_on_success.sh EOF +cp /run/systemd/system/testservice-success-exit-handler-68.service \ + /run/systemd/system/testservice-transient-success-exit-handler-68.service + # Template version. cat >/run/systemd/system/testservice-success-exit-handler-68-template@.service </run/systemd/system/testservice-failure-exit-handler-68-template@.service <