summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-11-16 13:52:45 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-02-01 16:36:45 (GMT)
commit9c99ca85c5aea86533cb160c6811ab27c2186ff9 (patch)
tree3b428cf262b350e135359d5c93f94debf59bc521 /tsp/scripts
parent8ede8d0bc79eb9e2a2573d5063d6054edff1bbc0 (diff)
downloadmajor-9c99ca85c5aea86533cb160c6811ab27c2186ff9.zip
major-9c99ca85c5aea86533cb160c6811ab27c2186ff9.tar.gz
major-9c99ca85c5aea86533cb160c6811ab27c2186ff9.tar.bz2
Publish results for Tizen 3.0 in separate filerefs/changes/38/108738/3
Use separate view for 3.0-common Database update is required. Delete it or run: . tsp/common.sh sqlite3 "${DBPATH}" -batch < tsp/results-schema.sql Change-Id: I092cd46f9b53f539e8be1ef3038c5eb01c001cf2 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/publish.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tsp/scripts/publish.py b/tsp/scripts/publish.py
index 89c2efb..38e51b5 100755
--- a/tsp/scripts/publish.py
+++ b/tsp/scripts/publish.py
@@ -71,13 +71,14 @@ def print_view(dbpath, tizen3):
conn = sqlite3.connect(dbpath)
column_names = ["SR", "Date", "\"Build nr\"", "Device", "Status"]
print_head(column_names)
- testresults = conn.execute("SELECT " + ', '.join(column_names) + " FROM currentstatus;")
+ if tizen3:
+ testresults = conn.execute("SELECT " + ', '.join(column_names) + " FROM currentstatus3;")
+ else:
+ testresults = conn.execute("SELECT " + ', '.join(column_names) + " FROM currentstatus;")
col = COLORS[0]
prev_sr = ''
for row in testresults:
sr=row[0]
- if tizen3 and not '-3.0-' in sr:
- continue
if not sr == prev_sr:
prev_sr = sr
col = next_color(col)
@@ -92,7 +93,7 @@ def parse_arguments():
parser.add_argument("-3", "--tizen3",
action="store_true", dest="tizen3",
- help='Print results for Tizen 3.0 only')
+ help='Print results for Tizen 3.0-common only')
args = parser.parse_args()