| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 """ | 3 """ |
| 4 Copyright 2014 Google Inc. | 4 Copyright 2014 Google Inc. |
| 5 | 5 |
| 6 Use of this source code is governed by a BSD-style license that can be | 6 Use of this source code is governed by a BSD-style license that can be |
| 7 found in the LICENSE file. | 7 found in the LICENSE file. |
| 8 | 8 |
| 9 Compare GM results for two configs, across all builders. | 9 Compare GM results for two configs, across all builders. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 # System-level imports | 12 # System-level imports |
| 13 import argparse | 13 import argparse |
| 14 import logging | 14 import logging |
| 15 import time | 15 import time |
| 16 | 16 |
| 17 # Must fix up PYTHONPATH before importing from within Skia | 17 # Must fix up PYTHONPATH before importing from within Skia |
| 18 import fix_pythonpath # pylint: disable=W0611 | 18 import rs_fixpypath # pylint: disable=W0611 |
| 19 | 19 |
| 20 # Imports from within Skia | 20 # Imports from within Skia |
| 21 from py.utils import url_utils | 21 from py.utils import url_utils |
| 22 import gm_json | 22 import gm_json |
| 23 import imagediffdb | 23 import imagediffdb |
| 24 import imagepair | 24 import imagepair |
| 25 import imagepairset | 25 import imagepairset |
| 26 import results | 26 import results |
| 27 | 27 |
| 28 | 28 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 results_obj = ConfigComparisons(configs=args.config, | 199 results_obj = ConfigComparisons(configs=args.config, |
| 200 actuals_root=args.actuals, | 200 actuals_root=args.actuals, |
| 201 generated_images_root=args.workdir) | 201 generated_images_root=args.workdir) |
| 202 gm_json.WriteToFile( | 202 gm_json.WriteToFile( |
| 203 results_obj.get_packaged_results_of_type(results_type=args.results), | 203 results_obj.get_packaged_results_of_type(results_type=args.results), |
| 204 args.outfile) | 204 args.outfile) |
| 205 | 205 |
| 206 | 206 |
| 207 if __name__ == '__main__': | 207 if __name__ == '__main__': |
| 208 main() | 208 main() |
| OLD | NEW |