fix: espcoredump without project_description.json in ci

This commit is contained in:
Fu Hanxi 2022-05-25 12:00:13 +08:00
parent a5bb129c37
commit b2f107b76c

View File

@ -22,7 +22,8 @@ def get_prefix_map_gdbinit_path(prog_path): # type: (str) -> Any
build_dir = os.path.abspath(os.path.dirname(prog_path)) build_dir = os.path.abspath(os.path.dirname(prog_path))
desc_path = os.path.abspath(os.path.join(build_dir, 'project_description.json')) desc_path = os.path.abspath(os.path.join(build_dir, 'project_description.json'))
if not os.path.isfile(desc_path): if not os.path.isfile(desc_path):
raise ValueError(f'{desc_path} does not exist. Please build the app with "idf.py build"') logging.warning('%s does not exist. Please build the app with "idf.py build"', desc_path)
return ''
with open(desc_path, 'r') as f: with open(desc_path, 'r') as f:
project_desc = json.load(f) project_desc = json.load(f)