diff --git a/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py b/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py index 88cdb2d5ff443677a76d657fd483ede471ecca97..461fae43540f2d9c86134e6ba920583010931414 100755 --- a/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py +++ b/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py @@ -55,7 +55,8 @@ def push_to_device(path): dst_path = host_to_device_path(path) # hdc do not auto create directories on device hdc(['shell', 'mkdir', '-p', os.path.dirname(dst_path)]) - hdc(['file', 'send', '-m', path, dst_path], attempts=5, check_stdout='FileTransfer finish') + hdc(['file', 'send', path, dst_path], attempts=5, check_stdout='FileTransfer finish') + hdc(['shell', 'chmod', '+x', dst_path]) def map_path(path, do_push): if os.path.exists(path):