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.
This commit is contained in:
Daan De Meyer 2024-05-05 13:58:38 +02:00
parent f74fb048f9
commit f1d3962e61

View file

@ -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