in report/firefox_code_coverage/codecoverage.py [0:0]
def get_platform(task_name):
if "linux" in task_name:
return "linux"
elif "win" in task_name:
return "windows"
elif "macosx" in task_name:
return "macos"
# Assume source-test tasks without the OS name in the label are on Linux.
elif "source-test" in task_name:
return "linux"
else:
raise Exception(f"Unknown platform for {task_name}")