Bug 1630610 - Fix broken code. r=sparky

Differential Revision: https://phabricator.services.mozilla.com/D73154
This commit is contained in:
Yue Zhang 2020-05-13 00:29:08 +00:00
Родитель c85192abc1
Коммит 118aa2368b
1 изменённых файлов: 2 добавлений и 9 удалений

Просмотреть файл

@ -75,20 +75,13 @@ class PerftestNotebook(object):
elif isinstance(file_grouping, dict):
# A dictionary of settings from an artifact_downloader instance
# was provided here
print("awljdlkwad")
raise Exception(
"Artifact downloader tooling is disabled for the time being."
)
elif isinstance(file_grouping, str):
# Assume a path to files was given
filepath = files
newf = [f for f in pathlib.Path(filepath).rglob("*.json")]
if not newf:
# Couldn't find any JSON files, so take all the files
# in the directory
newf = [f for f in pathlib.Path(filepath).rglob("*")]
filepath = file_grouping
newf = [f.resolve().as_posix() for f in pathlib.Path(filepath).rglob("*")]
files = newf
else:
raise Exception(