From: Daan De Meyer Date: Sun, 5 May 2024 11:58:38 +0000 (+0200) Subject: TEST-04-JOURNAL: Skip bsod test if systemd-bsod is not installed X-Git-Tag: v256-rc2~97^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1d3962e6151b71779b148936ae8d67636dea8f9;p=thirdparty%2Fsystemd.git 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. --- 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