systemd/debian/tests/process-killer
Didier Roche 23241ac43a Add autopkgtests for systemd-fsckd
They are mostly testing the robustness of the various daemons:
 - starting with or without plymouth
 - surviving kill of fsck, systemd-fsckd, systemd-fsck, plymouth

It will be possible to extend it later on with Control+C tests on plymouth
and eventually checking the protocol output.

LP: #1427312
2015-03-03 15:13:49 +01:00

10 lines
137 B
Bash
Executable File

#!/bin/sh
# loop until we can kill the process given in arg
while :
do
/usr/bin/pkill -x $*
[ $? -eq 0 ] && break
sleep 1
done