Mercurial > mozilla > hg > talosnames
diff talosnames/web.py @ 26:c6a042aad739
fix some things
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 12 Jul 2012 12:07:41 -0700 |
parents | 6ec941f8704a |
children | c6580ad2612f |
line wrap: on
line diff
--- a/talosnames/web.py Tue Jul 10 23:19:29 2012 -0700 +++ b/talosnames/web.py Thu Jul 12 12:07:41 2012 -0700 @@ -38,6 +38,28 @@ 'api': self.api } + paint = {} + chrome = {} + graphserver = {} + for suite in suites: + for test in tests.get(suite) or []: + config = self.api.talos_config(suite) + _paint = '--mozAfterPaint' in self.data['commands'][suite] + _chrome = '--noChrome' not in self.data['commands'][suite] + extension = config.get('test_name_extension', '') + _extension = '' + if not _chrome: + _extension += '_nochrome' + if _paint: + _extension += '_paint' + if extension != _extension: + raise AssertionError + paint[suite] = _paint + chrome[suite] = _chrome + graphserver.setdefault(suite, {})[test] = [self.api.graphserver_name(test + extension) or ('','')] + self.data['graphserver'] = graphserver + self.data['paint'] = paint + self.data['chrome'] = chrome def __call__(self, environ, start_response): request = Request(environ)