diff options
author | Bastien Nocera <hadess@hadess.net> | 2018-02-05 16:34:56 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-02-05 17:42:49 +0100 |
commit | 8351ff4d451da2004efc36a205e369b3207ecfe6 (patch) | |
tree | fed338f5201cfca1db7b55b968a0a6df94ea1dbe | |
parent | d1d3edbaa3aad6c3be6f201c7048c6e70c4e161f (diff) | |
download | gnome-settings-daemon-8351ff4d451da2004efc36a205e369b3207ecfe6.tar.gz |
tests: Fix mutter >= 3.26 not starting up
If mutter is built with Wayland support, it will fail to start up under
our mocked logind because it cannot get information about the session:
mutter-WARNING **: Can't initialize KMS backend: Could not get session ID: No such file or directory
See https://gitlab.gnome.org/GNOME/mutter/merge_requests/15
https://bugzilla.gnome.org/show_bug.cgi?id=793189
-rw-r--r-- | tests/gsdtestcase.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py index 81691b5a..31f65e92 100644 --- a/tests/gsdtestcase.py +++ b/tests/gsdtestcase.py @@ -170,7 +170,9 @@ class GSDTestCase(dbusmock.DBusTestCase): ''' start mutter ''' klass.mutter_log = open(os.path.join(klass.workdir, 'mutter.log'), 'wb') - klass.mutter = subprocess.Popen(['mutter'], + # See https://gitlab.gnome.org/GNOME/mutter/merge_requests/15 + os.environ['XDG_SESSION_TYPE'] = 'x11' + klass.mutter = subprocess.Popen(['mutter', '--x11'], stdout=klass.monitor_log, stderr=subprocess.STDOUT) |