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 5fcfb514f4b32a9e5b3f57e8fddee110ef3322d8..3ea67a67c65e246992f0294f9f9ef96075a619f7 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 []