mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
Bug 1675806 - Fix perfdocs unittest on Windows. r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D96425
This commit is contained in:
parent
8982a96b46
commit
137a7a6aa8
@ -49,9 +49,11 @@ def run_perfdocs(config, logger=None, paths=None, generate=True):
|
||||
if not top_dir:
|
||||
floc = os.path.abspath(__file__)
|
||||
top_dir = floc.split("tools")[0]
|
||||
top_dir = top_dir.replace("\\", "\\\\")
|
||||
|
||||
PerfDocLogger.LOGGER = logger
|
||||
PerfDocLogger.TOP_DIR = top_dir
|
||||
|
||||
# Convert all the paths to relative ones
|
||||
rel_paths = [re.sub(top_dir, "", path) for path in paths]
|
||||
PerfDocLogger.PATHS = rel_paths
|
||||
|
Loading…
Reference in New Issue
Block a user