Skip to content

Commit

Permalink
fixup! tests/packaging: skip systemd tests without systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
jruzicka-nic committed Sep 27, 2024
1 parent b8ec012 commit b3ba97c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/packaging/systemd_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ if test "$(id -u)" -ne 0; then
fi

# SKIP test when systemd isn't PID 1
if ps 1 | grep /sbin/init ; then
echo "systemd is PID 1 -> RUN systemd tests"
if [[ -d /run/systemd/system ]] ; then
echo "systemd detected -> RUN systemd tests"
else
echo "systemd isn't PID 1 -> SKIP systemd tests"
echo "systemd not detected -> SKIP systemd tests"
exit 77
fi

Expand Down

0 comments on commit b3ba97c

Please sign in to comment.