From f1d3962e6151b71779b148936ae8d67636dea8f9 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 5 May 2024 13:58:38 +0200 Subject: [PATCH] TEST-04-JOURNAL: Skip bsod test if systemd-bsod is not installed systemd is built without qrencode support on CentOS which means systemd-bsod will not be installed. Let's skip the test if that's the case. --- test/units/testsuite-04.bsod.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/units/testsuite-04.bsod.sh b/test/units/testsuite-04.bsod.sh index 36092fe821d..83feb892be0 100755 --- a/test/units/testsuite-04.bsod.sh +++ b/test/units/testsuite-04.bsod.sh @@ -4,7 +4,12 @@ set -eux set -o pipefail if systemd-detect-virt -cq; then - echo "This test requires a VM, skipping the test" + echo "This test requires a VM, skipping the test" | tee --append /skipped + exit 0 +fi + +if [[ ! -x /usr/lib/systemd/systemd-bsod ]]; then + echo "systemd-bsod is not installed, skipping the test" | tee --append /skipped exit 0 fi -- 2.47.3