From 926b26e9fcd49e993ad0fbf509cc0bd13d3bdb90 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 3 May 2023 19:54:41 -0400 Subject: [PATCH] headless tests: Add debug spew Trying to track down what is going on with our missing monitors. --- testsuite/headless/headless-monitor-tests.py | 4 ++-- testsuite/headless/run-headless-monitor-tests.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/testsuite/headless/headless-monitor-tests.py b/testsuite/headless/headless-monitor-tests.py index 48aebd8a7c..c556a7bb92 100644 --- a/testsuite/headless/headless-monitor-tests.py +++ b/testsuite/headless/headless-monitor-tests.py @@ -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 diff --git a/testsuite/headless/run-headless-monitor-tests.sh b/testsuite/headless/run-headless-monitor-tests.sh index 7c62766ff5..d2944e80a2 100755 --- a/testsuite/headless/run-headless-monitor-tests.sh +++ b/testsuite/headless/run-headless-monitor-tests.sh @@ -2,6 +2,9 @@ srcdir=${MESON_CURRENT_SOURCE_DIR:-./testsuite/headless} +export GTK_A11Y=none +export GIO_USE_VFS=local + dbus-run-session sh <&mutter.log & mutter_pid=\$!