[devtools] prevent Xvfb resets
Seems like firefox opens more than one connection to the X server in
some cases, and things get utterly confused.
--- 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()