mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 968581 - enable xpcshell verbose log output if only 1 test is in the manifest. r=gps
--HG-- extra : rebase_source : b521c42f3eca5dc8742b1689b4ec89edc1012d03
This commit is contained in:
parent
a3855090a2
commit
9ff90eea71
@ -119,6 +119,9 @@ class XPCShellRunner(MozbuildObject):
|
||||
|
||||
tests_dir = os.path.join(self.topobjdir, '_tests', 'xpcshell')
|
||||
modules_dir = os.path.join(self.topobjdir, '_tests', 'modules')
|
||||
# We want output from the test to be written immediately if we are only
|
||||
# running a single test.
|
||||
verbose_output = test_path is not None or (manifest and len(manifest.test_paths())==1)
|
||||
|
||||
args = {
|
||||
'xpcshell': os.path.join(self.bindir, 'xpcshell'),
|
||||
@ -140,7 +143,7 @@ class XPCShellRunner(MozbuildObject):
|
||||
'debuggerArgs': debuggerArgs,
|
||||
'debuggerInteractive': debuggerInteractive,
|
||||
'on_message': (lambda obj, msg: xpcshell.log.info(msg.decode('utf-8', 'replace'))) \
|
||||
if test_path is not None else None,
|
||||
if verbose_output else None,
|
||||
}
|
||||
|
||||
if manifest is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user