diff --git a/test/scripts/performance_test/performance_build.py b/test/scripts/performance_test/performance_build.py index 7547c36d3907a479257e7f3933c5aad7a74ea722..04d937420612317d63879c95b0e81f461bef5b78 100644 --- a/test/scripts/performance_test/performance_build.py +++ b/test/scripts/performance_test/performance_build.py @@ -175,7 +175,8 @@ class PerformanceBuild(): def start_build(self, is_debug): if self.config.developing_test_data_path: # test data - self.collect_build_data(is_debug, os.path.join(os.path.dirname(__file__), self.config.developing_test_data_path)) + self.collect_build_data(is_debug, os.path.join(os.path.dirname(__file__), + self.config.developing_test_data_path)) return True reports_before = [] report_dir = '.hvigor/report' diff --git a/test/scripts/utils/download_sdk_and_image/download.py b/test/scripts/utils/download_sdk_and_image/download.py index 077ba1c5582ebd704301ff1c41acc73562323ea8..0f74410c743dbc76c7abc84c73b2626135520f31 100755 --- a/test/scripts/utils/download_sdk_and_image/download.py +++ b/test/scripts/utils/download_sdk_and_image/download.py @@ -98,8 +98,6 @@ def get_download_url(task_name, image_date): break except BaseException as err: print(err) - if download_url_suffix == '': - return None download_url = 'http://download.ci.openharmony.cn/' + download_url_suffix return download_url @@ -293,6 +291,9 @@ def get_the_image(task_name, download_url, image_date, output_path_list): download_save_path = configs.get('download_save_path') if download_url == '': download_url = get_download_url(task_name, image_date) + if download_url == 'http://download.ci.openharmony.cn/': + print('get download url failed') + return False file_name = parse_file_name(download_url) if output_path_list is None: output_path_list = get_task_config(file_name)[2]