[gnome-settings-daemon] tests: Check for Xvfb binary and remove mention of dummy driver
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] tests: Check for Xvfb binary and remove mention of dummy driver
- Date: Mon, 5 Feb 2018 15:40:34 +0000 (UTC)
commit 8db612400503d346529f59ac597d1fddb7c75fe1
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 5 16:16:22 2018 +0100
tests: Check for Xvfb binary and remove mention of dummy driver
tests/gsdtestcase.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index c5ba2d0..cf1c9f7 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -58,9 +58,6 @@ class GSDTestCase(dbusmock.DBusTestCase):
os.environ['LC_MESSAGES'] = 'C'
klass.workdir = tempfile.mkdtemp(prefix='gsd-power-test')
- # start X.org server with dummy driver; this is needed until Xvfb
- # supports XRandR:
- # http://lists.x.org/archives/xorg-devel/2013-January/035114.html
klass.start_xorg()
# tell dconf and friends to use our config/runtime directories
@@ -191,6 +188,10 @@ class GSDTestCase(dbusmock.DBusTestCase):
'''start Xvfb server'''
xorg = GLib.find_program_in_path ('Xvfb')
+ if not xorg:
+ sys.stderr.write('Cannot start X.org, Xvfb binary not found\n')
+ sys.exit(1)
+
display_num = 99
if os.path.isfile('/tmp/.X%d-lock' % display_num):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]