mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 06:10:35 +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:
|
if not top_dir:
|
||||||
floc = os.path.abspath(__file__)
|
floc = os.path.abspath(__file__)
|
||||||
top_dir = floc.split("tools")[0]
|
top_dir = floc.split("tools")[0]
|
||||||
|
top_dir = top_dir.replace("\\", "\\\\")
|
||||||
|
|
||||||
PerfDocLogger.LOGGER = logger
|
PerfDocLogger.LOGGER = logger
|
||||||
PerfDocLogger.TOP_DIR = top_dir
|
PerfDocLogger.TOP_DIR = top_dir
|
||||||
|
|
||||||
# Convert all the paths to relative ones
|
# Convert all the paths to relative ones
|
||||||
rel_paths = [re.sub(top_dir, "", path) for path in paths]
|
rel_paths = [re.sub(top_dir, "", path) for path in paths]
|
||||||
PerfDocLogger.PATHS = rel_paths
|
PerfDocLogger.PATHS = rel_paths
|
||||||
|
Loading…
x
Reference in New Issue
Block a user