#!/usr/bin/env python3 # # Copyright (c) 2019, Linux Foundation # # SPDX-License-Identifier: GPL-2.0-only # import argparse import os import glob import json import subprocess from jinja2 import Template index_templpate = """
Build | Type | Branch | Test Results Report | Performance Reports | ptest Logs | Buildhistory | Host Data |
---|---|---|---|---|---|---|---|
{{entry[0]}} | {% if entry[2] %} {{entry[2]}}{% endif %} | {% if entry[4] %} {{entry[4]}}{% endif %} | {% if entry[3] %}Report{% endif %} | {% for perfrep in entry[6] %} {{perfrep[1]}} {% endfor %} | {% for ptest in entry[7] %} {{ptest[1]}} {% endfor %} | {% for bh in entry[5] %} {{bh[1]}} {% endfor %} | {% for hd in entry[8] %} {{hd[1]}} {% endfor %} |