OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 """ | 3 """ |
4 Copyright 2013 Google Inc. | 4 Copyright 2013 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 Repackage expected/actual GM results as needed by our HTML rebaseline viewer. | 9 Repackage expected/actual GM results as needed by our HTML rebaseline viewer. |
10 """ | 10 """ |
11 | 11 |
12 # System-level imports | 12 # System-level imports |
13 import argparse | 13 import argparse |
14 import fnmatch | 14 import fnmatch |
15 import logging | 15 import logging |
16 import os | 16 import os |
17 import time | 17 import time |
18 | 18 |
19 # Must fix up PYTHONPATH before importing from within Skia | 19 # Must fix up PYTHONPATH before importing from within Skia |
20 import fix_pythonpath # pylint: disable=W0611 | 20 import rs_fixpypath # pylint: disable=W0611 |
21 | 21 |
22 # Imports from within Skia | 22 # Imports from within Skia |
23 from py.utils import url_utils | 23 from py.utils import url_utils |
24 import column | 24 import column |
25 import gm_json | 25 import gm_json |
26 import imagediffdb | 26 import imagediffdb |
27 import imagepair | 27 import imagepair |
28 import imagepairset | 28 import imagepairset |
29 import results | 29 import results |
30 | 30 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 actuals_root=args.actuals, | 405 actuals_root=args.actuals, |
406 expected_root=args.expectations, | 406 expected_root=args.expectations, |
407 ignore_failures_file=args.ignore_failures_file) | 407 ignore_failures_file=args.ignore_failures_file) |
408 gm_json.WriteToFile( | 408 gm_json.WriteToFile( |
409 results_obj.get_packaged_results_of_type(results_type=args.results), | 409 results_obj.get_packaged_results_of_type(results_type=args.results), |
410 args.outfile) | 410 args.outfile) |
411 | 411 |
412 | 412 |
413 if __name__ == '__main__': | 413 if __name__ == '__main__': |
414 main() | 414 main() |
OLD | NEW |