Scott Zawalski | 20a9b58 | 2011-11-21 11:49:40 -0800 | [diff] [blame] | 1 | {% extends "emails/tests_base.html" %} |
| 2 | {% comment %} |
| 3 | |
Mike Truty | 3deb216 | 2012-07-18 20:12:29 -0700 | [diff] [blame^] | 4 | Copyright 2012 Google Inc. All Rights Reserved. |
Scott Zawalski | 20a9b58 | 2011-11-21 11:49:40 -0800 | [diff] [blame] | 5 | |
| 6 | This template builds an email with details of test(s) that failed. |
| 7 | {% endcomment %} |
| 8 | {% block status_block %}failed{% endblock %} |
| 9 | {% block fail_table_block %} |
| 10 | |
| 11 | {% if tpl_failed_tests %} |
| 12 | <h3>Report summary:</h3> |
| 13 | <table width="100%" style="border-collapse: collapse"> |
| 14 | {% for row in tpl_split_failed_tests %} |
| 15 | <tr> |
| 16 | {% for name, details in row %} |
| 17 | {% if details %} |
| 18 | <td style="border-width: 1px; padding: 4px; border-style: solid; border-color: #666666; background-color: #eaeef3; text-align: center"> |
Mike Truty | 3deb216 | 2012-07-18 20:12:29 -0700 | [diff] [blame^] | 19 | <a title="Click to view source." target="_blank" |
| 20 | href="http://git.chromium.org/gitweb/?p=chromiumos/third_party/autotest.git&a=tree&f={{ details.test_path }}"> |
| 21 | {{ name }} |
| 22 | </a> |
Scott Zawalski | 20a9b58 | 2011-11-21 11:49:40 -0800 | [diff] [blame] | 23 | </td> |
| 24 | {% endif %} |
| 25 | {% endfor %} |
| 26 | </tr> |
| 27 | <tr> |
| 28 | {% for name, details in row %} |
| 29 | {% if details %} |
| 30 | <td style="border-width: 1px; padding: 4px; border-style: solid; border-color: #666666; background-color: #ff9f9f; text-align: center"> |
Mike Truty | 3deb216 | 2012-07-18 20:12:29 -0700 | [diff] [blame^] | 31 | <a title="Click to view test logs." target="_blank" |
| 32 | href="http://cautotest/tko/retrieve_logs.cgi?job=/results/{{ details.tag }}/{{ name }}"> |
| 33 | {{ details.status }} |
| 34 | </a> |
Scott Zawalski | 20a9b58 | 2011-11-21 11:49:40 -0800 | [diff] [blame] | 35 | </td> |
| 36 | {% endif %} |
| 37 | {% endfor %} |
| 38 | </tr> |
| 39 | {% endfor %} |
| 40 | </table><p> |
| 41 | {% endif %} |
| 42 | {% if tpl_crashes %} |
| 43 | <h3>Crashes detected during testing:</h3> |
| 44 | <ul> |
| 45 | {% for crash, tests in tpl_crashes %} |
| 46 | <li>{{ crash }}<ul> |
| 47 | {% for test, details in tests %} |
| 48 | <li> |
Mike Truty | 3deb216 | 2012-07-18 20:12:29 -0700 | [diff] [blame^] | 49 | <a title="Click to view test logs." target="_blank" |
| 50 | href="http://cautotest/tko/retrieve_logs.cgi?job=/results/{{ details.tag }}/{{ test }}"> |
| 51 | {{ test }} |
| 52 | </a> |
Scott Zawalski | 20a9b58 | 2011-11-21 11:49:40 -0800 | [diff] [blame] | 53 | </li> |
| 54 | {% endfor %} |
| 55 | </ul></li> |
| 56 | {% endfor %} |
| 57 | </ul> |
| 58 | {% endif %} |
| 59 | {% if tpl_failed_tests %} |
| 60 | <h3>Full report:</h3> |
| 61 | <table width="100%" style="border-collapse: collapse"> |
| 62 | {% for name, details in tpl_failed_tests %} |
| 63 | {% if details %} |
| 64 | <tr> |
| 65 | <td width="10%" style="border-width: 1px; padding: 4px; border-style: solid; border-color: #666666; background-color: #ff9f9f; text-align: center"> |
Mike Truty | 3deb216 | 2012-07-18 20:12:29 -0700 | [diff] [blame^] | 66 | <a title="Click to view test logs." target="_blank" |
| 67 | href="http://cautotest/tko/retrieve_logs.cgi?job=/results/{{ details.0.tag }}/{{ name }}"> |
| 68 | {{ details.0.status }} |
| 69 | </a> |
Scott Zawalski | 20a9b58 | 2011-11-21 11:49:40 -0800 | [diff] [blame] | 70 | </td> |
| 71 | <td style="border-width: 1px; padding: 4px; border-style: solid; border-color: #666666; background-color: #eaeef3;"> |
Mike Truty | 3deb216 | 2012-07-18 20:12:29 -0700 | [diff] [blame^] | 72 | <a title="Click to view source." target="_blank" |
| 73 | href="http://git.chromium.org/gitweb/?p=chromiumos/third_party/autotest.git&a=tree&f={{ details.0.test_path }}"> |
| 74 | {{ name }} |
| 75 | </a> |
Scott Zawalski | 20a9b58 | 2011-11-21 11:49:40 -0800 | [diff] [blame] | 76 | </td> |
| 77 | </tr> |
| 78 | <tr> |
| 79 | <td colspan="100%" style="border-width: 1px; padding: 4px; border-style: solid; border-color: #666666;"> |
| 80 | {% if details.0.test_logs %} |
| 81 | <pre style="white-space: pre-wrap; margin: 0px; padding: 0px">{{ details.0.test_logs }}</pre> |
| 82 | {% else %} |
| 83 | <pre style="white-space: pre-wrap; margin: 0px; padding: 0px">No error logs available.</pre> |
| 84 | {% endif %} |
| 85 | </pre> |
| 86 | </td> |
| 87 | </tr> |
| 88 | <tr><td colspan="100%" style="padding: 4px;"></td></tr> |
| 89 | {% endif %} |
| 90 | {% endfor %} |
| 91 | </table><p> |
| 92 | {% endif %} |
| 93 | {% endblock %} |