summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-11-16 14:48:52 +0100
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-01-16 11:07:49 +0100
commit8ede8d0bc79eb9e2a2573d5063d6054edff1bbc0 (patch)
tree4744774576d29f401be00bb38fa8db2918805142 /tsp/scripts
parente8293e96289d4296fa2bafe08464614cf2096a6b (diff)
downloadmajor-8ede8d0bc79eb9e2a2573d5063d6054edff1bbc0.tar.gz
major-8ede8d0bc79eb9e2a2573d5063d6054edff1bbc0.tar.bz2
major-8ede8d0bc79eb9e2a2573d5063d6054edff1bbc0.zip
Add --tizen3 argument to tsp/scripts/publish.py
Change-Id: I7b2c8d9d10efcd82022f04d36b63619ac29ee99b Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/publish.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tsp/scripts/publish.py b/tsp/scripts/publish.py
index a08ec0e..89c2efb 100755
--- a/tsp/scripts/publish.py
+++ b/tsp/scripts/publish.py
@@ -65,7 +65,7 @@ def print_row(row, color):
print template.render(build_nr=build_nr, sr=sr, row=[date, build_nr, target],\
status=status, target=target, color=color, screenshotable=SCREENSHOTABLE)
-def print_view(dbpath):
+def print_view(dbpath, tizen3):
def next_color(col):
return COLORS[(COLORS.index(col) + 1) % len(COLORS)]
conn = sqlite3.connect(dbpath)
@@ -76,6 +76,8 @@ def print_view(dbpath):
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)
@@ -88,6 +90,10 @@ def parse_arguments():
parser.add_argument("db3", metavar='<db>', type=str,
help='database path')
+ parser.add_argument("-3", "--tizen3",
+ action="store_true", dest="tizen3",
+ help='Print results for Tizen 3.0 only')
+
args = parser.parse_args()
return args
@@ -95,7 +101,7 @@ def parse_arguments():
def main():
args = parse_arguments()
if args.db3:
- print_view(args.db3)
+ print_view(args.db3, args.tizen3)
if __name__ == '__main__':
main()