From 41231bec0cafda40b3e560deafd217e791c51590 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Tue, 17 Oct 2023 12:49:03 +0200 Subject: [PATCH] test: don't restart journal-upload on an expected fail In c08bec1587 the journal-upload unit gained Restart=on-fail, which goes against this one particular test that expects the unit to fail, making the test flaky. Let's disable the automatic restarts just for this test to make it stable once again. --- test/units/testsuite-04.journal-remote.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/units/testsuite-04.journal-remote.sh b/test/units/testsuite-04.journal-remote.sh index c0b95caec3..c543129da9 100755 --- a/test/units/testsuite-04.journal-remote.sh +++ b/test/units/testsuite-04.journal-remote.sh @@ -209,6 +209,12 @@ ServerCertificateFile=/run/systemd/journal-remote-tls/cert.pem TrustedCertificateFile=/run/systemd/remote-pki/ca.crt EOF systemd-analyze cat-config systemd/journal-upload.conf +mkdir -p /run/systemd/system/systemd-journal-upload.service.d +cat >/run/systemd/system/systemd-journal-upload.service.d/99-test.conf <