Index: infra/bots/assets/skp/create_and_upload.py |
diff --git a/infra/bots/assets/win_toolchain/create_and_upload.py b/infra/bots/assets/skp/create_and_upload.py |
similarity index 71% |
copy from infra/bots/assets/win_toolchain/create_and_upload.py |
copy to infra/bots/assets/skp/create_and_upload.py |
index d428ca4ef9df2352ea3627f1656e59fd27e6eef2..6567f80ffc35fd2b6cd547fa3c3b664b163471f0 100755 |
--- a/infra/bots/assets/win_toolchain/create_and_upload.py |
+++ b/infra/bots/assets/skp/create_and_upload.py |
@@ -19,9 +19,9 @@ import utils |
def main(): |
parser = argparse.ArgumentParser() |
+ parser.add_argument('--chrome_src_path', '-c', required=True) |
+ parser.add_argument('--browser_executable', '-e', required=True) |
parser.add_argument('--gsutil') |
- parser.add_argument('--chrome_path') |
- parser.add_argument('--msvs_version', required=True) |
args = parser.parse_args() |
with utils.tmp_dir(): |
@@ -30,12 +30,9 @@ def main(): |
upload_script = os.path.join(common.FILE_DIR, 'upload.py') |
try: |
- 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) |
+ subprocess.check_call(['python', create_script, '--target_dir', cwd, |
+ '--chrome_src_path', args.chrome_src_path, |
+ '--browser_executable', args.browser_executable]) |
cmd = ['python', upload_script, '-t', cwd] |
if args.gsutil: |
cmd.extend(['--gsutil', args.gsutil]) |