| Index: tools/telemetry/telemetry/util/support_binaries.py
|
| diff --git a/tools/telemetry/telemetry/util/support_binaries.py b/tools/telemetry/telemetry/util/support_binaries.py
|
| index ebc19174224b9a85eceacde92f1948527775355f..3e8c2bca3833845a3b58167924248b31d1047029 100644
|
| --- a/tools/telemetry/telemetry/util/support_binaries.py
|
| +++ b/tools/telemetry/telemetry/util/support_binaries.py
|
| @@ -3,6 +3,7 @@
|
| # found in the LICENSE file.
|
|
|
| import os
|
| +import stat
|
|
|
| from telemetry import decorators
|
| from telemetry.util import cloud_storage
|
| @@ -48,6 +49,11 @@ def FindPath(binary_name, platform_name):
|
| cloud_storage.GetIfChanged(_GetBinPath(binary_name, platform_name))
|
| command = _GetBinPath(binary_name, platform_name)
|
|
|
| + # Ensure the downloaded file is actually executable.
|
| + if command and os.path.exists(command):
|
| + os.chmod(command,
|
| + stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP)
|
| +
|
| # Return an absolute path consistently.
|
| if command:
|
| command = os.path.abspath(command)
|
|
|