Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: slave/skia_slave_scripts/webpages_playback.py

Issue 344183004: Use new common utils where possible. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « slave/skia_slave_scripts/utils/upload_to_bucket.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Archives or replays webpages and creates SKPs in a Google Storage location. 6 """Archives or replays webpages and creates SKPs in a Google Storage location.
7 7
8 To archive webpages and store SKP files (archives should be rarely updated): 8 To archive webpages and store SKP files (archives should be rarely updated):
9 9
10 cd ../buildbot/slave/skia_slave_scripts 10 cd ../buildbot/slave/skia_slave_scripts
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 import os 51 import os
52 import posixpath 52 import posixpath
53 import shutil 53 import shutil
54 import subprocess 54 import subprocess
55 import sys 55 import sys
56 import tempfile 56 import tempfile
57 import time 57 import time
58 import traceback 58 import traceback
59 59
60 60
61 from utils import misc
62 # Set the PYTHONPATH for this script to include chromium_buildbot scripts, 61 # Set the PYTHONPATH for this script to include chromium_buildbot scripts,
63 # and site_config. 62 # and site_config.
64 sys.path.append(os.path.join(misc.BUILDBOT_PATH, 'third_party', 63 BUILDBOT_PATH = os.path.realpath(os.path.join(
65 'chromium_buildbot', 'scripts')) 64 os.path.dirname(os.path.abspath(__file__)), os.pardir, os.pardir))
66 sys.path.append(os.path.join(misc.BUILDBOT_PATH, 'third_party', 65 sys.path.append(os.path.join(BUILDBOT_PATH, 'common'))
67 'chromium_buildbot', 'site_config')) 66 sys.path.append(os.path.join(BUILDBOT_PATH, 'third_party', 'chromium_buildbot',
67 'scripts'))
68 sys.path.append(os.path.join(BUILDBOT_PATH, 'third_party', 'chromium_buildbot',
69 'site_config'))
68 70
69 from utils import file_utils 71 from utils import file_utils
70 from utils import gs_utils 72 from utils import gs_utils
71 from utils import shell_utils 73 from py.utils import misc
74 from py.utils import shell_utils
72 75
73 from slave import slave_utils 76 from slave import slave_utils
74 77
75 from build_step import PLAYBACK_CANNED_ACL 78 from build_step import PLAYBACK_CANNED_ACL
76 from playback_dirs import ROOT_PLAYBACK_DIR_NAME 79 from playback_dirs import ROOT_PLAYBACK_DIR_NAME
77 from playback_dirs import SKPICTURES_DIR_NAME 80 from playback_dirs import SKPICTURES_DIR_NAME
78 81
79 82
80 # Local archive and SKP directories. 83 # Local archive and SKP directories.
81 LOCAL_PLAYBACK_ROOT_DIR = os.path.join( 84 LOCAL_PLAYBACK_ROOT_DIR = os.path.join(
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 default=None) 489 default=None)
487 option_parser.add_option( 490 option_parser.add_option(
488 '', '--non-interactive', action='store_true', 491 '', '--non-interactive', action='store_true',
489 help='Runs the script without any prompts. If this flag is specified and ' 492 help='Runs the script without any prompts. If this flag is specified and '
490 '--skia_tools is specified then the debugger is not run.', 493 '--skia_tools is specified then the debugger is not run.',
491 default=False) 494 default=False)
492 options, unused_args = option_parser.parse_args() 495 options, unused_args = option_parser.parse_args()
493 496
494 playback = SkPicturePlayback(options) 497 playback = SkPicturePlayback(options)
495 sys.exit(playback.Run()) 498 sys.exit(playback.Run())
OLDNEW
« no previous file with comments | « slave/skia_slave_scripts/utils/upload_to_bucket.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698