]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-04-JOURNAL: Skip bsod test if systemd-bsod is not installed
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 May 2024 11:58:38 +0000 (13:58 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 May 2024 09:57:09 +0000 (11:57 +0200)
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

index 36092fe821dae86805bcf9278092cf3d1bbdd8a7..83feb892be05ab09393101c50c829c1259a561e4 100755 (executable)
@@ -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