Set execute permissions on sky_server after download.
BUG= R=abarth@chromium.org Review URL: https://codereview.chromium.org/886543004
This commit is contained in:
parent
5dd395d81d
commit
043b30cdda
@ -3,6 +3,8 @@
|
|||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
|
import os
|
||||||
|
import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from webkitpy.common.system import filesystem
|
from webkitpy.common.system import filesystem
|
||||||
@ -10,11 +12,13 @@ from webkitpy.common.webkit_finder import WebKitFinder
|
|||||||
|
|
||||||
finder = WebKitFinder(filesystem.FileSystem())
|
finder = WebKitFinder(filesystem.FileSystem())
|
||||||
|
|
||||||
|
output_file_ = finder.path_from_chromium_base('out', 'downloads', 'sky_server')
|
||||||
subprocess.call([
|
subprocess.call([
|
||||||
'download_from_google_storage',
|
'download_from_google_storage',
|
||||||
'--no_resume',
|
'--no_resume',
|
||||||
'--no_auth',
|
'--no_auth',
|
||||||
'--bucket', 'mojo',
|
'--bucket', 'mojo',
|
||||||
'--sha1_file', finder.path_from_chromium_base('sky', 'tools', 'skygo', 'sky_server.sha1'),
|
'--sha1_file', finder.path_from_chromium_base('sky', 'tools', 'skygo', 'sky_server.sha1'),
|
||||||
'--output', finder.path_from_chromium_base('out', 'downloads', 'sky_server')
|
'--output', output_file_
|
||||||
])
|
])
|
||||||
|
os.chmod(output_file_, os.stat(output_file_).st_mode | stat.S_IEXEC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user