]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: mark plymouth as optional dependency
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 18 Jan 2019 19:49:29 +0000 (20:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 21 Jan 2019 10:35:24 +0000 (11:35 +0100)
rescue.service pulls in /bin/plymouth, which doesn't exist on some
distributions (e.g. Arch Linux). Let's mark it as optional, as it's not
even required by the referencing unit and causes unwanted fails in the
integration testsuite.

test/test-functions

index 498dc82b18ab711a4c4a0958d7972ae864d962d6..a8c79496682457ecc09d5ff49496839156c9f4d9 100644 (file)
@@ -551,7 +551,9 @@ install_execs() {
     sed -r -n 's|^Exec[a-zA-Z]*=[@+!-]*([^ ]+).*|\1|gp' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
          | sort -u | while read i; do
          # some {rc,halt}.local scripts and programs are okay to not exist, the rest should
-         inst $i || [ "${i%.local}" != "$i" ] || [ "${i%systemd-update-done}" != "$i" ]
+         # also, plymouth is pulled in by rescue.service, but even there the exit code
+         # is ignored; as it's not present on some distros, don't fail if it doesn't exist
+         inst $i || [ "${i%.local}" != "$i" ] || [ "${i%systemd-update-done}" != "$i" ] || [ "/bin/plymouth" == "$i" ]
      done
     )
 }