devtools/qunit.py
changeset 8695 358d8bed9626
parent 8692 40d4ba3589be
child 8756 203fb56685ca
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
    80                    'No write access to your home directory, Firefox will crash.'\
    80                    'No write access to your home directory, Firefox will crash.'\
    81                    ' Are you sure "%s" is a valid home  for user "%s"' % (home, user)
    81                    ' Are you sure "%s" is a valid home  for user "%s"' % (home, user)
    82             check_call(self.firefox_cmd + ['-CreateProfile',
    82             check_call(self.firefox_cmd + ['-CreateProfile',
    83                         '%s %s' % (self._profile_name, self._tmp_dir)],
    83                         '%s %s' % (self._profile_name, self._tmp_dir)],
    84                                   stdout=stdout, stderr=stderr)
    84                                   stdout=stdout, stderr=stderr)
    85         except CalledProcessError, cpe:
    85         except CalledProcessError as cpe:
    86             stdout.seek(0)
    86             stdout.seek(0)
    87             stderr.seek(0)
    87             stderr.seek(0)
    88             raise VerboseCalledProcessError(cpe.returncode, cpe.cmd, stdout.read(), stderr.read())
    88             raise VerboseCalledProcessError(cpe.returncode, cpe.cmd, stdout.read(), stderr.read())
    89 
    89 
    90     def start(self, url):
    90     def start(self, url):