diff options
author | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2016-11-16 14:52:45 +0100 |
---|---|---|
committer | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2017-02-01 17:36:45 +0100 |
commit | 9c99ca85c5aea86533cb160c6811ab27c2186ff9 (patch) | |
tree | 3b428cf262b350e135359d5c93f94debf59bc521 /tsp/scripts | |
parent | 8ede8d0bc79eb9e2a2573d5063d6054edff1bbc0 (diff) | |
download | major-9c99ca85c5aea86533cb160c6811ab27c2186ff9.tar.gz major-9c99ca85c5aea86533cb160c6811ab27c2186ff9.tar.bz2 major-9c99ca85c5aea86533cb160c6811ab27c2186ff9.zip |
Publish results for Tizen 3.0 in separate file
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-x | tsp/scripts/publish.py | 9 |
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() |