[gnome-remote-desktop] tests/vnc: Use mutter headless backend



commit 97efa2174303050fa530a2e039249debbfbe5411
Author: Jonas Ådahl <jadahl gmail com>
Date:   Sun May 29 16:21:38 2022 +0000

    tests/vnc: Use mutter headless backend

 tests/run-vnc-tests.py   | 4 ++--
 tests/vnc-test-runner.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/run-vnc-tests.py b/tests/run-vnc-tests.py
index 39796d14..7af822b9 100755
--- a/tests/run-vnc-tests.py
+++ b/tests/run-vnc-tests.py
@@ -21,7 +21,6 @@ vnc_client_failed = None
 vnc_server_failed = None
 
 os.environ['GNOME_REMOTE_DESKTOP_TEST_VNC_PASSWORD'] = 'secret'
-os.environ['MUTTER_DEBUG_DUMMY_MODE_SPECS'] = '1024x768'
 
 def run_vnc_test_client():
   print("Running VNC test client")
@@ -70,7 +69,8 @@ def remote_desktop_name_appeared_cb(name):
 def start_mutter():
   global mutter
   print("Starting mutter")
-  mutter = subprocess.Popen(['mutter', '--nested', '--wayland'],
+  mutter = subprocess.Popen(['mutter', '--headless', '--wayland', '--no-x11',
+                             '--virtual-monitor', '1024x768'],
                             stderr=subprocess.STDOUT)
 
 def stop_mutter():
diff --git a/tests/vnc-test-runner.sh b/tests/vnc-test-runner.sh
index aa973d2f..ceb3090f 100755
--- a/tests/vnc-test-runner.sh
+++ b/tests/vnc-test-runner.sh
@@ -1,3 +1,3 @@
 #!/usr/bin/env bash
 
-dbus-run-session -- xvfb-run -s '+iglx -noreset' $TEST_SRCDIR/tests/run-vnc-tests.py
+dbus-run-session -- $TEST_SRCDIR/tests/run-vnc-tests.py


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]