tests: Use ps -o stat instead of "state"

Oh, Alpine
This commit is contained in:
Fabian Homborg 2020-08-05 23:38:44 +02:00
parent 911f043bf0
commit f63d70298f

View file

@ -12,7 +12,7 @@ echo Trigger process reaping
# be gone by the time we get here. Unfortunately, kill from procps on pre-2016 distributions
# does not print an error for non-existent PIDs, so instead look for zombies in this session
# (there should be none).
ps -o state | string match 'Z*'
ps -o stat | string match 'Z*'
jobs -q
echo $status