headless tests: Add debug spew

Trying to track down what is going on with our
missing monitors.
This commit is contained in:
Matthias Clasen 2023-05-03 19:54:41 -04:00
parent 88f27c423c
commit 926b26e9fc
2 changed files with 5 additions and 5 deletions

View File

@ -36,10 +36,10 @@ def stream_added_closure(name):
# Use gstreamer out-of-process, since the gst gl support gets
# itself into a twist with its wayland connection when monitors
# disappear
pipeline_desc = f'gst-launch-1.0 pipewiresrc path={node_id} ! video/x-raw,max-framerate={freq}/1,width={width},height={height} ! videoconvert ! glimagesink'
pipeline_desc = f'gst-launch-1.0 --verbose pipewiresrc path={node_id} ! video/x-raw,max-framerate={freq}/1,width={width},height={height} ! videoconvert ! glimagesink'
if verbose:
print(f'launching {pipeline_desc}')
monitor['pipeline'] = subprocess.Popen([pipeline_desc], shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
monitor['pipeline'] = subprocess.Popen([pipeline_desc], shell=True)
return stream_added

View File

@ -2,6 +2,9 @@
srcdir=${MESON_CURRENT_SOURCE_DIR:-./testsuite/headless}
export GTK_A11Y=none
export GIO_USE_VFS=local
dbus-run-session sh <<EOF
export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
@ -15,9 +18,6 @@ sleep 1
# echo DBUS_SESSION_BUS_ADDRESS=\$DBUS_SESSION_BUS_ADDRESS
# echo WAYLAND_DISPLAY=gtk-test
export GTK_A11Y=none
export GIO_USE_VFS=local
mutter --headless --no-x11 --wayland-display gtk-test >&mutter.log &
mutter_pid=\$!