test: use KILL instead of SIGKILL in TEST-52-HONORFIRSTSHUTDOWN
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 4 Jul 2020 18:18:02 +0000 (20:18 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 Jul 2020 10:00:57 +0000 (11:00 +0100)
commitbf795c47bc0eff0a8a4eed21d82d69a3573b3611
treed8af0521a1615ca31e6f08c8845c34ec376b1aac
parent2fadbb4535108406384a5d63c1ad3082f845c646
test: use KILL instead of SIGKILL in TEST-52-HONORFIRSTSHUTDOWN

SIG-prefixed signals for `kill` are not POSIX compliant, so on Ubuntu CI
(which defaults to dash instead of bash) the TEST-52 contains following
error:

[ 9693.549638] sh[51]: + systemctl poweroff --no-block
[ 9693.553130] systemd-logind[26]: System is powering down.
[ 9693.608911] sh[54]: /bin/sh: 1: kill: Illegal option -S

This can be reproduced manually as well, either by running dash, or bash
in POSIX mode:

$ dash -c 'kill -SIGKILL 123'
dash: 1: kill: Illegal option -S

$ bash --posix -c 'kill -SIGKILL 123'
bash: line 0: kill: SIGKILL: invalid signal specification
test/units/test-honor-first-shutdown.service