-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport-base.j2.txt
119 lines (86 loc) · 3.21 KB
/
report-base.j2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{#
This is a Jinja2 template which can be extended to suit your reporting
needs
report.j2.txt expands this; you can define a report.j2.txt this in
.tcf:~/.tcf:/etc/tcf to override it. You can also override this file
in any of those locations.
See FIXME: location
TIPS:
- Note {%- and -%}, they are used to avoid adding vertcal whitespace;
see http://jinja.pocoo.org/docs/2.10/templates/#whitespace-control
Adding - basically eats out the emtpy vertical whitespace.
-#}
{%- block TITTLE -%}
TCF: {{ tc_name_short }} @ {{ target_group_info }} **{{ result_past }}**
{% endblock -%}
{%- block TARGET_INFORMATION %}
{%- if targets %}
Target Name Remote ID Type URL
------------ ----------------------------- ------------------ ---------
{% for target_info in targets -%}
{{ "%-12s %-29s %-18s %s"
| format(target_info.want_name, target_info.fullid,
target_info.type,
target_info.server_url + "/ttb-v2/ui/target/" + target_info.id) }}
{% endfor -%}
{% else %}
(this testcase used no remote targets and ran locally)
{% endif %}
{% endblock -%}
{# This is left empty to other templates to expand as needed #}
{%- block HEADER_PREFIX -%}
{%- endblock -%}
Execution log
=============
- console output in lines tagged 'console output'
- the target might have produced none; GDB might be needed at this point
- information for all testcase build, deployment and execution phases
is included; filter by the first column
{% for ident, tgname, message in log -%}
{{ "%-10s %-25s %s" | format(ident, tgname, message) }}
{% endfor %}
{% block REPRODUCTION_STEPS -%}
Reproduce it [*]:
tcf run -vvv{{ t_option }} {{ tc_name_toplevel }}
{% if targets -%}
Find more information about targets:
tcf list -vv TARGETNAME1 TARGETNAME2 ...
Acquire them for exclusive use:
tcf acquire TARGETNAME1 TARGETNAME2 ...
(note the daemon will relinquish them after 5min of inactivity)
Start debugging with
tcf debug-start TARGETNAME
tcf debug-info TARGETNAME
Power on
tcf power-on TARGETNAME1 TARGETNAME2 ...
Reset with
tcf reset TARGETNAME1 TARGETNAME2 ...
Read the console with
tcf console-read -a TARGETNAME
Release when done
tcf release TARGETNAME1 TARGETNAME2 ...
{% endif -%}
{% endblock -%}
{%- if targets %}
{%- block TCF_CONFIGURATION %}
[*] Make sure your TCF configuration in ~/.tcf is set to access the servers
used in this run:
{% for server_url, ssl_ignore, server_aka, ca_path in tcfl_config_urls -%}
tcfl.config.url_add("{{ server_url }}", ssl_ignore = {{ ssl_ignore }}{{ ', aka = \"' + server_aka + '\"' if server_aka }}{{ ', ca_path = \"' + ca_path + '\"' if ca_path }})
{% endfor %}
{%- endblock %}
{%- endif %}
{% block TAG_INFO -%}
Testcase Tag Value + Origin
------------------- -------------------------------------------------------
{% for tag in tags -%}
{{ "%-19s %s" | format(tag, tags[tag]['value']) }}
{{ " @" + tags[tag]['origin'] }}
{% endfor %}
{%- endblock %}
This report was generated by TCF
(http://intel.github.com/tcf/02-QUICKSTART.html) while executing the
testcase '{{thisfile}}'.
(You can configure this text by modifying the Jinja2 template
tcfl.report_jinja2.templates['text'] in any of TCF's conf_*.py
configuration files)