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

Unified Diff: infra/bots/assets/android_sdk/create_and_upload.py

Issue 2086003002: Add Android SDK asset (Closed) Base URL: https://skia.googlesource.com/skia.git@cipd
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/bots/assets/android_sdk/create.py ('k') | infra/bots/assets/android_sdk/download.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/assets/android_sdk/create_and_upload.py
diff --git a/infra/bots/assets/scripts/create_and_upload.py b/infra/bots/assets/android_sdk/create_and_upload.py
similarity index 79%
copy from infra/bots/assets/scripts/create_and_upload.py
copy to infra/bots/assets/android_sdk/create_and_upload.py
index 13564474771e8f5eac2e271bd7d39a9628da1681..01b1b2c728323902913d58ca02fe1356ad91c958 100755
--- a/infra/bots/assets/scripts/create_and_upload.py
+++ b/infra/bots/assets/android_sdk/create_and_upload.py
@@ -19,6 +19,7 @@ import utils
def main():
parser = argparse.ArgumentParser()
+ parser.add_argument('--android_sdk_root')
parser.add_argument('--gsutil')
args = parser.parse_args()
@@ -28,7 +29,11 @@ def main():
upload_script = os.path.join(common.FILE_DIR, 'upload.py')
try:
- subprocess.check_call(['python', create_script, '-t', cwd])
+ cmd = ['python', create_script, '-t', cwd]
+ if args.android_sdk_root:
+ cmd.extend(['--android_sdk_root', args.android_sdk_root])
+ subprocess.check_call(cmd)
+
cmd = ['python', upload_script, '-t', cwd]
if args.gsutil:
cmd.extend(['--gsutil', args.gsutil])
« no previous file with comments | « infra/bots/assets/android_sdk/create.py ('k') | infra/bots/assets/android_sdk/download.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698