From 74fbb24f64da7c0362e447c4966590fded4f35b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 24 Mar 2022 13:45:03 +0100 Subject: [PATCH] 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 3e3208eb85f..fefb03035e8 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 <