mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
headless tests: Add debug spew
Trying to track down what is going on with our missing monitors.
This commit is contained in:
parent
88f27c423c
commit
926b26e9fc
@ -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
|
||||
|
||||
|
@ -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=\$!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user