summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-03-05 14:33:19 +0100
committerBastien Nocera <hadess@hadess.net>2018-03-05 15:14:55 +0100
commitd98bf0ba5fb1191d48b2571a9be6c61ce214cd44 (patch)
tree12e4a6cf05b636aa17871310009477ce770ec059 /tests
parentb5452a55c5c5e06217424e096ebd24fddae28e6f (diff)
downloadgnome-settings-daemon-d98bf0ba5fb1191d48b2571a9be6c61ce214cd44.tar.gz
tests: Fix reading the Xorg log
The xorg log fd position will be after the written error, so re-open the log to read, and check for the expected error.
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index 5c8d7350..389c53d7 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -208,7 +208,7 @@ class GSDTestCase(dbusmock.DBusTestCase):
if klass.xorg.poll():
# ended prematurely
try:
- log = xorg_log_write.read()
+ log = open(xorg_log_write.name).read()
except IOError:
return -1