test: grab the device before any lid or tablet mode switches

Putting an EVIOCGRAB on the device before sending those events means no-one
else sees those events - particularly upower. This means no-one else knows the
lid is on or off and thus we never blank the screen (or suspend/shut down but
those are inhibited anyway).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
49 jobs for master in 18 minutes and 26 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Prep
passed #3493047
alpine:latest@container-prep

00:00:11

passed #3493046
arch:rolling@container-prep

00:00:25

passed #3493040
check-ci-script

00:00:35

passed #3493042
fedora:30@container-prep

00:00:13

passed #3493043
fedora:31@container-prep

00:00:13

passed #3493044
fedora:32@container-prep

00:00:13

passed #3493041
kvm
fedora:32@qemu-prep

00:00:07

passed #3493048
freebsd:11.2@container-prep

00:00:16

passed #3493045
ubuntu:19.10@container-prep

00:00:12

 
  Build
passed #3493054
build-no-debuggui@fedora:32

00:00:39

passed #3493055
build-no-debuggui-nodeps@fedora:32

00:00:44

passed #3493052
build-no-docs@fedora:32

00:00:47

passed #3493053
build-no-docs-nodeps@fedora:32

00:00:34

passed #3493050
build-no-libwacom@fedora:32

00:00:43

passed #3493051
build-no-libwacom-nodeps@fedora:32

00:00:41

passed #3493056
build-no-tests@fedora:32

00:00:40

passed #3493057
build-no-tests-nodeps@fedora:32

00:00:45

passed #3493060
flake8@fedora:32

00:00:45

passed #3493049
scan-build@fedora:32

00:01:12

passed #3493059
usr-bin-env-python@fedora:32

00:00:08

passed #3493058
valgrind@fedora:32

00:00:55

 
  Vm
passed #3493067
kvm
vm-gestures-device

00:02:40

passed #3493068
kvm
vm-gestures-device-no-libwacom

00:02:38

passed #3493069
kvm
vm-others

00:02:55

passed #3493070
kvm
vm-others-no-libwacom

00:03:00

passed #3493071
kvm
vm-pointer

00:03:22

passed #3493072
kvm
vm-pointer-no-libwacom

00:03:00

passed #3493065
kvm
vm-tablet

00:03:27

passed #3493066
kvm
vm-tablet-no-libwacom

00:02:31

passed #3493063
kvm
vm-tap

00:03:41

passed #3493064
kvm
vm-tap-no-libwacom

00:03:37

passed #3493061
kvm
vm-touchpad

00:06:46

passed #3493062
kvm
vm-touchpad-no-libwacom

00:06:41

 
  Valgrind
passed #3493076
kvm
vm-valgrind-gestures-device

00:07:40

passed #3493077
kvm
vm-valgrind-others

00:07:54

passed #3493078
kvm
vm-valgrind-pointer

00:05:38

passed #3493075
kvm
vm-valgrind-tablet

00:11:54

passed #3493074
kvm
vm-valgrind-tap

00:09:03

passed #3493073
kvm
vm-valgrind-touchpad

00:14:34

 
  Distro
passed #3493085
alpine:latest@default-build

00:00:13

passed #3493084
arch:rolling@default-build

00:00:39

passed #3493079
default-build-release@fedora:32

00:00:24

passed #3493080
fedora:30@default-build

00:00:41

passed #3493081
fedora:31@default-build

00:00:42

passed #3493082
fedora:32@default-build

00:00:47

passed #3493086
freebsd:11.2@default-build

00:00:13

passed #3493083
ubuntu:19.10@default-build

00:00:40

 
  Deploy
passed #3493087
check-merge-request

00:00:59

passed #3493088
wayland-web

00:00:15