mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ttfw_idf_find_artifacts_inaccurate_with_same_prefix_path_v4.2' into 'release/v4.2'
CI: fix the bug returns wrong artifact path when app_name is a subset of a longer one (v4.2) See merge request espressif/esp-idf!12228
This commit is contained in:
commit
81680a633f
@ -78,7 +78,9 @@ class Artifacts(object):
|
||||
for artifact_info in artifact_index:
|
||||
match_result = True
|
||||
if app_path:
|
||||
match_result = app_path in artifact_info["app_dir"]
|
||||
# We use endswith here to avoid issue like:
|
||||
# examples_protocols_mqtt_ws but return a examples_protocols_mqtt_wss failure
|
||||
match_result = artifact_info["app_dir"].endswith(app_path)
|
||||
if config_name:
|
||||
match_result = match_result and config_name == artifact_info["config"]
|
||||
if target:
|
||||
|
Loading…
x
Reference in New Issue
Block a user