path: systemd_260~rc2-1/debian/tests/boot-and-services def test_cron(self): pid = subprocess.check_output(['pidof', 'cron'], universal_newlines=True).strip() out = subprocess.check_output(['ps', 'u', pid], universal_newlines=True) self.assertIn('root', out) path: systemd_260~rc2-1/debian/tests/boot-and-services 'Forwarding to rsyslog is a Debian patch') def test_rsyslog(self): pid = subprocess.check_output(['pidof', 'rsyslogd'], universal_newlines=True).strip() out = subprocess.check_output(['ps', 'u', pid], universal_newlines=True) self.assertIn('bin/rsyslogd', out) path: systemd_260~rc2-1/debian/tests/boot-smoke echo "checking that NetworkManager runs" pidof NetworkManager || fail "NetworkManager was not running" fi path: systemd_260~rc2-1/debian/changelog * d/t/boot-smoke: gather still running jobs in fail() * d/t/boot-smoke: wait for is-system-running * d/t/boot-smoke: call fail if pidof polkitd fails * d/t/boot-smoke: remove check for running jobs path: systemd_260~rc2-1/debian/changelog to finish. It's a oneshot service, so the 'start' call above is effectively synchronous. * test/boot-and-services: use pidof instead of ps -C [ Chris Hofstaedtler ] path: systemd_260~rc2-1/debian/tests/logind shutdown -c || true # logind should still be running P=$(pidof systemd-logind) [ "$P" = "$LOGINDPID" ] || { echo "logind crashed" >&2; exit 1; } path: systemd_260~rc2-1/debian/tests/logind echo " * daemon is started" # should start at boot, not with D-BUS activation LOGINDPID=$(pidof systemd-logind) # loginctl should succeed path: systemd_260~rc2-1/debian/tests/logind evemu-event $LID_DEV --sync --type 5 --code 0 --value 0 P=$(pidof systemd-logind) [ "$P" = "$LOGINDPID" ] || { echo "logind crashed" >&2; exit 1; } } path: systemd_260~rc2-1/debian/tests/logind sleep 5 shutdown -c --no-wall || true P=$(pidof systemd-logind) [ "$P" = "$LOGINDPID" ] || { echo "logind crashed" >&2; exit 1; } }