Change-Id: Ic8f05d856b5001eb4ffe83f76c9f6a30ae79da11
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
DBNAME="results.db3"
DBPATH="${WS_PUBLISH}/${DBNAME}"
+WWW_PUBLISH="${WS_PUBLISH}/current_status.html"
TMP_POLL="/tmp/tl-master-poll"
TMP_MASTER="/tmp/tl-master"
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+table, th, td {
+ border: 1px solid black;
+ border-collapse: collapse;
+}
+th, td {
+ padding: 5px;
+}
+th {
+ text-align: left;
+}
+</style>
+</head>
+<body>
+<table>
--- /dev/null
+</table>
+</body>
+</html>
(select r.rid from result r where r.rname='$TAG'),\
(select d.did from device d where d.dname='$TARGET'));"
+# Publish to www
+cat "${TSP_DIR}/html_head" > "${WWW_PUBLISH}"
+sqlite3 -html -header "${DBPATH}" "SELECT * FROM currentstatus;" >> "${WWW_PUBLISH}"
+cat "${TSP_DIR}/html_tail" >> "${WWW_PUBLISH}"
+
# Clean up workspace
ssh tl-pwb "rm -rf \"${WORKSPACE}\"; mkdir -p \"${WORKSPACE}\"" || echo "rm failed"