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]) |