diff options
author | Ravi Mistry <rmistry@google.com> | 2017-07-18 14:58:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-18 19:59:33 +0000 |
commit | 312f4b24f96ff8c3f2bdb040b8167c09765992e4 (patch) | |
tree | 0ab7e60bf261c455b3ae2cd619baf9f338faf151 /infra | |
parent | 4f29c20f20ce62150998786be8b9f8a81a901d72 (diff) |
Copy over private SKPs during SKP asset create command
Bug: skia:6850
Change-Id: Idaa92d2b4233b9f03a15d70cc185261f0090bab4
Reviewed-on: https://skia-review.googlesource.com/24404
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
Diffstat (limited to 'infra')
-rwxr-xr-x | infra/bots/assets/skp/create.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/infra/bots/assets/skp/create.py b/infra/bots/assets/skp/create.py index e2d3f66d27..2cadd52135 100755 --- a/infra/bots/assets/skp/create.py +++ b/infra/bots/assets/skp/create.py @@ -19,6 +19,8 @@ import utils SKIA_TOOLS = os.path.join(common.INFRA_BOTS_DIR, os.pardir, os.pardir, 'tools') +PRIVATE_SKPS_GS = 'gs://skia-skps/private/skps' + def create_asset(chrome_src_path, browser_executable, target_dir, upload_to_partner_bucket): @@ -74,6 +76,10 @@ def create_asset(chrome_src_path, browser_executable, target_dir, if f.endswith('.skp'): shutil.copyfile(os.path.join(src, f), os.path.join(target_dir, f)) + # Copy over private SKPs from Google storage into the target_dir. + subprocess.check_call([ + 'gsutil', 'cp', os.path.join(PRIVATE_SKPS_GS, '*'), target_dir]) + def main(): parser = argparse.ArgumentParser() |