devtools/qunit.py
branchstable
changeset 8261 d4d9c88d4a5f
parent 8257 d54fc706d623
child 8692 40d4ba3589be
equal deleted inserted replaced
8257:d54fc706d623 8261:d4d9c88d4a5f
    70         fnull = open(os.devnull, 'w')
    70         fnull = open(os.devnull, 'w')
    71         stdout = TemporaryFile()
    71         stdout = TemporaryFile()
    72         stderr = TemporaryFile()
    72         stderr = TemporaryFile()
    73         self.firefox_cmd = ['firefox', '-no-remote']
    73         self.firefox_cmd = ['firefox', '-no-remote']
    74         if os.name == 'posix':
    74         if os.name == 'posix':
    75             self.firefox_cmd = ['xvfb-run', '-a'] + self.firefox_cmd
    75             self.firefox_cmd = [osp.join(osp.dirname(__file__), 'data', 'xvfb-run.sh'), '-a'] + self.firefox_cmd
    76         try:
    76         try:
    77             home = osp.expanduser('~')
    77             home = osp.expanduser('~')
    78             user = getlogin()
    78             user = getlogin()
    79             assert os.access(home, os.W_OK), \
    79             assert os.access(home, os.W_OK), \
    80                    'No write access to your home directory, Firefox will crash.'\
    80                    'No write access to your home directory, Firefox will crash.'\