Mercurial > mozilla > hg > talosnames
diff talosnames/web.py @ 21:48b4c926be73
getting there
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 10 Jul 2012 18:56:34 -0700 |
parents | 0a829ad6e116 |
children | 82d15f93cc4a |
line wrap: on
line diff
--- a/talosnames/web.py Tue Jul 10 18:39:46 2012 -0700 +++ b/talosnames/web.py Tue Jul 10 18:56:34 2012 -0700 @@ -26,7 +26,21 @@ def render(self): template = tempita.HTMLTemplate(self.template) - data = {} + suites = sorted(self.api.suites.keys()) + tests = {} + for suite in suites: + try: + test = self.api.test_config(suite) + tests[suite] = test + except: + tests[suite] = None + + data = {'suites': suites, + 'commands': self.api.buildbot_commands, + 'tbpl': dict([(suite, self.api.tbpl_name(suite)) + for suite in suites]), + 'tests': tests + } return template.substitute(data) if __name__ == '__main__':