mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1041839 - Write all-tests.json faster. r=gps
This commit is contained in:
parent
e7c51b334d
commit
66aeea108c
@ -240,8 +240,8 @@ class CommonBackend(BuildBackend):
|
||||
# Write out a machine-readable file describing every test.
|
||||
path = mozpath.join(self.environment.topobjdir, 'all-tests.json')
|
||||
with self._write_file(path) as fh:
|
||||
json.dump(self._test_manager.tests_by_path, fh, sort_keys=True,
|
||||
indent=2)
|
||||
s = json.dumps(self._test_manager.tests_by_path)
|
||||
fh.write(s)
|
||||
|
||||
def _create_config_header(self, obj):
|
||||
'''Creates the given config header. A config header is generated by
|
||||
|
@ -10,6 +10,7 @@ import os
|
||||
import mozpack.path as mozpath
|
||||
|
||||
from .base import MozbuildObject
|
||||
from .util import OrderedDefaultDict
|
||||
from collections import defaultdict
|
||||
|
||||
|
||||
@ -44,7 +45,7 @@ class TestMetadata(object):
|
||||
"""
|
||||
|
||||
def __init__(self, filename=None):
|
||||
self._tests_by_path = defaultdict(list)
|
||||
self._tests_by_path = OrderedDefaultDict(list)
|
||||
self._tests_by_flavor = defaultdict(set)
|
||||
self._test_dirs = set()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user