tests: Fix test_input_accel() leaking a daemon

test_input_accel() uses umockdev-run, and killing umockdev-run doesn't
kill the child iio-sensor-proxy daemon we make it spawn, making any test
running after this one fail. As the tests are run alphabetically, we
were lucky that this test was the last one, but we can't rely on that.

Instead, use psutil to list all the children processes and kill those
before killing umockdev-run.
This commit is contained in:
Bastien Nocera
2021-01-22 11:05:42 +01:00
parent 2449acac70
commit 203d6508dc
2 changed files with 4 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ variables:
git
python3-gobject
python3-dbusmock
python3-psutil
umockdev
build_stable: