From 27a8b8d4ea8ea56fda33b7c937a3030071086dfa Mon Sep 17 00:00:00 2001 From: Lyupa Anastasia Date: Wed, 10 Jul 2024 16:02:26 +0300 Subject: [PATCH] [compiler-rt][Test][OHOS] Fix sending files with hdc Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/IAC30A Signed-off-by: Lyupa Anastasia --- .../test/sanitizer_common/ohos_family_commands/ohos_common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 88cdb2d5ff44..461fae43540f 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): -- Gitee