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 results of two render_pictures runs. | 9 Compare results of two render_pictures runs. |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 # from the input summary files, or allow the caller to set it within the | 39 # from the input summary files, or allow the caller to set it within the |
40 # GET_live_results call. | 40 # GET_live_results call. |
41 DEFAULT_IMAGE_BASE_GS_URL = 'gs://' + buildbot_globals.Get('skp_images_bucket') | 41 DEFAULT_IMAGE_BASE_GS_URL = 'gs://' + buildbot_globals.Get('skp_images_bucket') |
42 | 42 |
43 # Column descriptors, and display preferences for them. | 43 # Column descriptors, and display preferences for them. |
44 COLUMN__RESULT_TYPE = results.KEY__EXTRACOLUMNS__RESULT_TYPE | 44 COLUMN__RESULT_TYPE = results.KEY__EXTRACOLUMNS__RESULT_TYPE |
45 COLUMN__SOURCE_SKP = 'sourceSkpFile' | 45 COLUMN__SOURCE_SKP = 'sourceSkpFile' |
46 COLUMN__TILED_OR_WHOLE = 'tiledOrWhole' | 46 COLUMN__TILED_OR_WHOLE = 'tiledOrWhole' |
47 COLUMN__TILENUM = 'tilenum' | 47 COLUMN__TILENUM = 'tilenum' |
48 FREEFORM_COLUMN_IDS = [ | 48 FREEFORM_COLUMN_IDS = [ |
| 49 COLUMN__SOURCE_SKP, |
49 COLUMN__TILENUM, | 50 COLUMN__TILENUM, |
50 ] | 51 ] |
51 ORDERED_COLUMN_IDS = [ | 52 ORDERED_COLUMN_IDS = [ |
52 COLUMN__RESULT_TYPE, | 53 COLUMN__RESULT_TYPE, |
53 COLUMN__SOURCE_SKP, | 54 COLUMN__SOURCE_SKP, |
54 COLUMN__TILED_OR_WHOLE, | 55 COLUMN__TILED_OR_WHOLE, |
55 COLUMN__TILENUM, | 56 COLUMN__TILENUM, |
56 ] | 57 ] |
57 | 58 |
58 # A special "repo:" URL type that we use to refer to Skia repo contents. | 59 # A special "repo:" URL type that we use to refer to Skia repo contents. |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 """ | 378 """ |
378 if gs_utils.GSUtils.is_gs_url(source_dir): | 379 if gs_utils.GSUtils.is_gs_url(source_dir): |
379 (bucket, path) = gs_utils.GSUtils.split_gs_url(source_dir) | 380 (bucket, path) = gs_utils.GSUtils.split_gs_url(source_dir) |
380 self._gs.download_dir_contents(source_bucket=bucket, source_dir=path, | 381 self._gs.download_dir_contents(source_bucket=bucket, source_dir=path, |
381 dest_dir=dest_dir) | 382 dest_dir=dest_dir) |
382 elif source_dir.lower().startswith(REPO_URL_PREFIX): | 383 elif source_dir.lower().startswith(REPO_URL_PREFIX): |
383 repo_dir = os.path.join(REPO_BASEPATH, source_dir[len(REPO_URL_PREFIX):]) | 384 repo_dir = os.path.join(REPO_BASEPATH, source_dir[len(REPO_URL_PREFIX):]) |
384 shutil.copytree(repo_dir, dest_dir) | 385 shutil.copytree(repo_dir, dest_dir) |
385 else: | 386 else: |
386 shutil.copytree(source_dir, dest_dir) | 387 shutil.copytree(source_dir, dest_dir) |
OLD | NEW |