summaryrefslogtreecommitdiffstats
path: root/testing/xvfb.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/xvfb.py')
-rwxr-xr-xtesting/xvfb.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/testing/xvfb.py b/testing/xvfb.py
index a5cb7aa..73bcd16 100755
--- a/testing/xvfb.py
+++ b/testing/xvfb.py
@@ -64,8 +64,13 @@ def wait_for_xvfb(xdisplaycheck, env):
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
env=env)
+ except OSError:
+ print >> sys.stderr, 'Failed to load %s with cwd=%s' % (
+ xdisplaycheck, os.getcwd())
+ return False
except subprocess.CalledProcessError:
- print >> sys.stderr, 'Xvfb failed to load properly.'
+ print >> sys.stderr, (
+ 'Xvfb failed to load properly while trying to run %s' % xdisplaycheck)
return False
return True