summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-09-22 09:31:06 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-01-09 18:46:11 (GMT)
commit18105aff1a96caae1bb384490d24e5a3d334cdb8 (patch)
treeceb88e47e889749a9af3f3ea6f6c3bb978faac23 /tsp/scripts
parent8989a446099975b67c8727dbcad50d75c0bd3350 (diff)
downloadmajor-18105aff1a96caae1bb384490d24e5a3d334cdb8.zip
major-18105aff1a96caae1bb384490d24e5a3d334cdb8.tar.gz
major-18105aff1a96caae1bb384490d24e5a3d334cdb8.tar.bz2
Add screenshots to tests on odroid imagesrefs/changes/65/89465/6
Link to snapshot's screenshot is created and updated. It will be used for comparison, eventually. Change-Id: I16e70d1a1a746362ff7a43705ee722db608d930a Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/publish.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/tsp/scripts/publish.py b/tsp/scripts/publish.py
index 382dbf5..0577c6a 100755
--- a/tsp/scripts/publish.py
+++ b/tsp/scripts/publish.py
@@ -38,7 +38,11 @@ def print_head(row):
print template.render(row=row)
def print_row(row):
- build_nr=str(row[2])
+ sr=row[0]
+ date=row[1]
+ build_nr=row[2]
+ target=row[3]
+ status=row[4]
template = jinja2.Template('<tr>\n\
<td> <a href=\"../dwn/{{ build_nr }}\">{{ sr }}</a> </td>\n\
{% for item in row %}\
@@ -48,11 +52,15 @@ def print_row(row):
{{ status }}\
{% if status == \'OK\' or status == \'Unclear\' or status == \'Fail\' or status == \'Snapshot\' %}\
(<a href=\"../img_test/{{ build_nr }}/sysctl.result\">smoke</a>,\
- <a href=\"../img_test/{{ build_nr }}/avocado-results/latest/html/results.html\">avocado</a>)\
+ <a href=\"../img_test/{{ build_nr }}/avocado-results/latest/html/results.html\">avocado</a>\
+{% if target == \'odroid\' %}\
+, <a href=\"../img_test/{{ build_nr }}/screenshot.png\">screenshot</a>\
+{% endif %})\
{% endif %}\
</td>\n\
</tr>\n')
- print template.render(build_nr=build_nr, sr=row[0], row=[row[1], build_nr, row[3]], status=row[4])
+ print template.render(build_nr=build_nr, sr=sr, row=[date, build_nr, target],\
+ status=status, target=target)
def print_view(dbpath):
conn = sqlite3.connect(dbpath)