Matthew Hart | fb6fd36 | 2020-03-04 21:03:59 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <title>TF Test Summary</title> |
| 4 | <meta charset="UTF-8"> |
| 5 | </head> |
| 6 | <body> |
| 7 | |
| 8 | {% for job in jobs %} |
| 9 | {% for job_id, data in job.items() %} |
| 10 | <h3> |
| 11 | {% if data[0]['health'] == 'Complete' %} |
| 12 | <font color="green"> |
| 13 | {% else %} |
| 14 | <font color="red"> |
| 15 | {% endif %} |
| 16 | Job: {{ job_id }}<br/> |
| 17 | Description: {{ data[0]['description'] }}<br/> |
| 18 | Device Type: {{ data[0]['device_type']}} Health: {{ data[0]['health'] }} <a href="{{ data[0]['metadata']['build_job_url'] }}">Build Job</a></br> |
| 19 | <a href="{{ data[0]['artifacts_dir'] }}/definition.yaml">LAVA Definition</a> <a href="{{ data[0]['lava_url'] }}">LAVA Job</a> <a href="{{ data[0]['artifacts_dir'] }}/target_log.txt">Target Log</a></br> |
| 20 | </font> |
| 21 | </h3> |
| 22 | {% if data[1] %} |
| 23 | <h3> |
| 24 | <table> |
| 25 | <tr> |
| 26 | <th>Name</th> |
| 27 | <th>Suite</th> |
| 28 | <th>Result</th> |
| 29 | </tr> |
| 30 | {% for result in data[1] %} |
| 31 | <tr> |
| 32 | <td>{{ result['name'] }} </td> |
| 33 | <td>{{ result['suite'] }} </td> |
| 34 | {% if result['result'] == 'pass' %} |
| 35 | <td style="background-color:green"> |
| 36 | {% else %} |
| 37 | <td style="background-color:red"> |
| 38 | {% endif %} |
| 39 | {{ result['result'] }}</td> |
| 40 | </tr> |
| 41 | {% endfor %} |
| 42 | </table> |
| 43 | </h3> |
| 44 | {% endif %} |
| 45 | {% endfor %} |
| 46 | {% endfor %} |
| 47 | |
| 48 | </body> |
| 49 | </html> |