new_version += 1
-def main(chrome_src_path, browser_executable):
+def main(chrome_src_path, browser_executable, dry_run):
browser_executable = os.path.realpath(browser_executable)
+ dry_run = (dry_run == 'True')
skp_version = _get_skp_version()
print 'SKP_VERSION=%d' % skp_version
'--browser_executable', browser_executable,
'--non-interactive',
'--upload',
- '--upload_to_partner_bucket',
'--alternate_upload_dir', upload_dir,
'--chrome_src_path', chrome_src_path,
]
+ if not dry_run:
+ webpages_playback_cmd.append('--upload_to_partner_bucket')
try:
shell_utils.run(webpages_playback_cmd)
if '__main__' == __name__:
- if len(sys.argv) != 3:
- print >> sys.stderr, 'USAGE: %s <chrome src path> <browser executable>'
+ if len(sys.argv) != 4:
+ print >> sys.stderr, ('USAGE: %s <chrome src path> <browser executable> '
+ '<dry run>')
sys.exit(1)
main(*sys.argv[1:])