[devtools] prevent Xvfb resets stable
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 11 Apr 2013 10:32:00 +0200
branchstable
changeset 8886 bff36e86f74a
parent 8884 e750e5abd1c7
child 8887 7920f439f383
[devtools] prevent Xvfb resets Seems like firefox opens more than one connection to the X server in some cases, and things get utterly confused.
devtools/qunit.py
--- a/devtools/qunit.py	Wed Apr 10 15:34:18 2013 +0200
+++ b/devtools/qunit.py	Thu Apr 11 10:32:00 2013 +0200
@@ -70,7 +70,8 @@
         stderr = TemporaryFile()
         self.firefox_cmd = ['firefox', '-no-remote']
         if os.name == 'posix':
-            self.firefox_cmd = [osp.join(osp.dirname(__file__), 'data', 'xvfb-run.sh'), '-a'] + self.firefox_cmd
+            self.firefox_cmd = [osp.join(osp.dirname(__file__), 'data', 'xvfb-run.sh'),
+                                '-a', '-s', '-noreset -screen 0 640x480x8'] + self.firefox_cmd
         try:
             home = osp.expanduser('~')
             user = getlogin()