Index: infra/bots/assets/win_toolchain/create_and_upload.py |
diff --git a/infra/bots/assets/android_sdk/create_and_upload.py b/infra/bots/assets/win_toolchain/create_and_upload.py |
similarity index 76% |
copy from infra/bots/assets/android_sdk/create_and_upload.py |
copy to infra/bots/assets/win_toolchain/create_and_upload.py |
index 01b1b2c728323902913d58ca02fe1356ad91c958..d428ca4ef9df2352ea3627f1656e59fd27e6eef2 100755 |
--- a/infra/bots/assets/android_sdk/create_and_upload.py |
+++ b/infra/bots/assets/win_toolchain/create_and_upload.py |
@@ -19,8 +19,9 @@ import utils |
def main(): |
parser = argparse.ArgumentParser() |
- parser.add_argument('--android_sdk_root') |
parser.add_argument('--gsutil') |
+ parser.add_argument('--chrome_path') |
+ parser.add_argument('--msvs_version', required=True) |
args = parser.parse_args() |
with utils.tmp_dir(): |
@@ -29,11 +30,12 @@ def main(): |
upload_script = os.path.join(common.FILE_DIR, 'upload.py') |
try: |
- cmd = ['python', create_script, '-t', cwd] |
- if args.android_sdk_root: |
- cmd.extend(['--android_sdk_root', args.android_sdk_root]) |
+ cmd = ['python', create_script, |
+ '-t', cwd, |
+ '--msvs_version', args.msvs_version] |
+ if args.chrome_path: |
+ cmd.extend(['--chrome_path', args.chrome_path]) |
subprocess.check_call(cmd) |
- |
cmd = ['python', upload_script, '-t', cwd] |
if args.gsutil: |
cmd.extend(['--gsutil', args.gsutil]) |