headless tests: Add debug spew
authorMatthias Clasen <mclasen@redhat.com>
Wed, 3 May 2023 23:54:41 +0000 (19:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 May 2023 03:27:09 +0000 (23:27 -0400)
Trying to track down what is going on with our
missing monitors.

testsuite/headless/headless-monitor-tests.py
testsuite/headless/run-headless-monitor-tests.sh

index 48aebd8a7ccb8df367a1d8fedaf60c4ca16bc083..c556a7bb92840310b964675e23708706c5e80c1a 100644 (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
 
index 7c62766ff5b9bf831fa2e1b0c1ebc131de9fc8c7..d2944e80a2cc51e039e5a543a6848816471419d2 100755 (executable)
@@ -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=\$!