OLD | NEW |
1 # Copyright (c) 2010 Google Inc. All rights reserved. | 1 # Copyright (c) 2010 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 self.layout_tests_directory = layout_tests_directory | 43 self.layout_tests_directory = layout_tests_directory |
44 self.results_directory = results_directory | 44 self.results_directory = results_directory |
45 self.platforms = platforms | 45 self.platforms = platforms |
46 self.filesystem = filesystem | 46 self.filesystem = filesystem |
47 self.scm = scm | 47 self.scm = scm |
48 | 48 |
49 | 49 |
50 class RebaselineServer(AbstractLocalServerCommand): | 50 class RebaselineServer(AbstractLocalServerCommand): |
51 name = "rebaseline-server" | 51 name = "rebaseline-server" |
52 help_text = __doc__ | 52 help_text = __doc__ |
| 53 show_in_main_help = True |
53 argument_names = "/path/to/results/directory" | 54 argument_names = "/path/to/results/directory" |
54 | 55 |
55 server = RebaselineHTTPServer | 56 server = RebaselineHTTPServer |
56 | 57 |
57 def _gather_baselines(self, results_json): | 58 def _gather_baselines(self, results_json): |
58 # Rebaseline server and it's associated JavaScript expected the tests su
btree to | 59 # Rebaseline server and it's associated JavaScript expected the tests su
btree to |
59 # be key-value pairs instead of hierarchical. | 60 # be key-value pairs instead of hierarchical. |
60 # FIXME: make the rebaseline server use the hierarchical tree. | 61 # FIXME: make the rebaseline server use the hierarchical tree. |
61 new_tests_subtree = {} | 62 new_tests_subtree = {} |
62 | 63 |
(...skipping 26 matching lines...) Expand all Loading... |
89 self._gather_baselines(results_json) | 90 self._gather_baselines(results_json) |
90 | 91 |
91 return { | 92 return { |
92 'test_config': self._test_config, | 93 'test_config': self._test_config, |
93 "results_json": results_json, | 94 "results_json": results_json, |
94 "platforms_json": { | 95 "platforms_json": { |
95 'platforms': platforms, | 96 'platforms': platforms, |
96 'defaultPlatform': port.name(), | 97 'defaultPlatform': port.name(), |
97 }, | 98 }, |
98 } | 99 } |
OLD | NEW |