diff options
author | Simon Ser <contact@emersion.fr> | 2021-09-13 11:39:51 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-09-14 12:47:19 +0200 |
commit | 6cb25ebad728612817e3f438c482e04180efe95e (patch) | |
tree | cfd151ebd863af87a9d410ccdd638ec88af68690 /.builds/archlinux.yml | |
parent | 52da68b591bedbbf8a01d74b2f08307a28b058c9 (diff) |
ci: switch to seatd-launch
This removes the need for the ad-hoc loop.
Because udev creates the symlinks in /dev/dri/by-path/, we need to
wait for it to consume all pending events before the chmod call.
Previously the delay needed for seatd to come up was enough to let
udev create the symlinks in time (by chance).
Diffstat (limited to '.builds/archlinux.yml')
-rw-r--r-- | .builds/archlinux.yml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml index 88c7265e..bbc4874b 100644 --- a/.builds/archlinux.yml +++ b/.builds/archlinux.yml @@ -34,10 +34,9 @@ tasks: - smoke-test: | cd wlroots/tinywl sudo modprobe vkms - sudo seatd -u "$USER" & - while ! [ -e /run/seatd.sock ]; do sleep 0.1; done + udevadm settle export WLR_BACKENDS=drm export WLR_RENDERER=pixman export WLR_DRM_DEVICES=/dev/dri/by-path/platform-vkms-card sudo chmod ugo+rw /dev/dri/by-path/platform-vkms-card - ./tinywl -s 'kill $PPID' || [ $? = 143 ] + sudo -E seatd-launch -- ./tinywl -s 'kill $PPID' || [ $? = 143 ] |