summaryrefslogtreecommitdiff
path: root/tsp/scripts/publish.py
diff options
context:
space:
mode:
Diffstat (limited to 'tsp/scripts/publish.py')
-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()