Use colored logging for end-to-end tests
This commit is contained in:
parent
0b24916fc7
commit
43908dba20
@ -169,6 +169,10 @@ class QuteProc(testprocess.Process):
|
|||||||
self.ready.emit()
|
self.ready.emit()
|
||||||
|
|
||||||
def _parse_line(self, line):
|
def _parse_line(self, line):
|
||||||
|
# http://stackoverflow.com/a/14693789/2085149
|
||||||
|
ansi_escape = re.compile(r'\x1b[^m]*m')
|
||||||
|
line = ansi_escape.sub('', line)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
log_line = LogLine(line)
|
log_line = LogLine(line)
|
||||||
except testprocess.InvalidLine:
|
except testprocess.InvalidLine:
|
||||||
@ -237,7 +241,8 @@ class QuteProc(testprocess.Process):
|
|||||||
return executable, args
|
return executable, args
|
||||||
|
|
||||||
def _default_args(self):
|
def _default_args(self):
|
||||||
return ['--debug', '--no-err-windows', '--temp-basedir', 'about:blank']
|
return ['--debug', '--no-err-windows', '--temp-basedir',
|
||||||
|
'--force-color', 'about:blank']
|
||||||
|
|
||||||
def path_to_url(self, path, *, port=None, https=False):
|
def path_to_url(self, path, *, port=None, https=False):
|
||||||
"""Get a URL based on a filename for the localhost webserver.
|
"""Get a URL based on a filename for the localhost webserver.
|
||||||
|
Loading…
Reference in New Issue
Block a user