test: inhibit shutdown and suspend while the tests are running

We test lid switch events which are independently handled by Upower. Let's
make sure nothing else can tell logind to suspend or shut down while we're
running.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-07-03 10:28:53 +10:00
parent 3403692ff0
commit 9bb8133486

View file

@ -1134,7 +1134,7 @@ inhibit(void)
&error,
&m,
"ssss",
"handle-lid-switch:handle-power-key:handle-suspend-key:handle-hibernate-key",
"sleep:shutdown:handle-lid-switch:handle-power-key:handle-suspend-key:handle-hibernate-key",
"libinput test-suite runner",
"testing in progress",
"block");