d/tests/run-with-display: Use absolute path to WAYLAND_DISPLAY socket
authorSimon McVittie <smcv@debian.org>
Tue, 3 Jan 2023 11:15:07 +0000 (11:15 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 3 Jan 2023 11:15:13 +0000 (11:15 +0000)
This means we can still use the Wayland display, even when dh_auto_test
changes our XDG_RUNTIME_DIR.

debian/tests/run-with-display

index 3fa2d46e3ba888976ffa800aa3fe519436f2e2bb..0391e607f39fa7b8d6d52da1507ca508dd2f9ae1 100755 (executable)
@@ -47,7 +47,7 @@ case "$display" in
             echo "Waiting for socket..."
             sleep 1
         done
-        env -u DISPLAY WAYLAND_DISPLAY="$socket" "$@"
+        env -u DISPLAY WAYLAND_DISPLAY="$XDG_RUNTIME_DIR/$socket" "$@"
         exit $?
     ;;
     x11)