From 06eb05e3da97c57a0d3f94f4ad42eeb72fc96765 Mon Sep 17 00:00:00 2001 From: Lyupa Anastasia Date: Tue, 9 Apr 2024 12:33:31 +0300 Subject: [PATCH] [compiler-rt][OHOS] Remove print in hdc_constants Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/I9FXQY Signed-off-by: Lyupa Anastasia --- .../sanitizer_common/ohos_family_commands/hdc_constants.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/compiler-rt/test/sanitizer_common/ohos_family_commands/hdc_constants.py b/compiler-rt/test/sanitizer_common/ohos_family_commands/hdc_constants.py index 5fcfb514f4b3..3ea67a67c65e 100644 --- a/compiler-rt/test/sanitizer_common/ohos_family_commands/hdc_constants.py +++ b/compiler-rt/test/sanitizer_common/ohos_family_commands/hdc_constants.py @@ -3,16 +3,13 @@ import os # TODO: move this to the cmake ? HDC = os.environ.get('HDC', 'hdc') +# Please set "HDC_SERVER_IP_PORT" and "HDC_UTID" environment variables +# to pass options for connecting to remote device if needed HDC_SERVER_IP_PORT = os.environ.get('HDC_SERVER_IP_PORT') HDC_UTID = os.environ.get('HDC_UTID') TMPDIR = os.environ.get('OHOS_REMOTE_TMP_DIR', '/data/local/tmp/Output') DYN_LINKER = os.environ.get('OHOS_REMOTE_DYN_LINKER') -# emit warning on import if some required constants are not set -if not HDC_SERVER_IP_PORT or not HDC_UTID: - print('Please set "HDC_SERVER_IP_PORT" and "HDC_UTID" environment variables ' - 'to be able to debug on remote device') - def get_hdc_cmd_prefix(): server = ['-s', HDC_SERVER_IP_PORT] if HDC_SERVER_IP_PORT else [] device = ['-t', HDC_UTID] if HDC_UTID else [] -- Gitee