Skip to content

Commit

Permalink
Merge branch 'tools/incorrect_usage_on_check_executables_v3.4.0.0' in…
Browse files Browse the repository at this point in the history
…to 'release/v3.4.0.0'

tools: Fixed an incorrect usage on checking executables (v3.4.0.0)

See merge request application/esp-at!1695
  • Loading branch information
xcguang committed Dec 24, 2024
2 parents a4cd44c + 05d0d3a commit e671f83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/ci/check_executables.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ def _strip_each_item(iterable: Iterable) -> List:
return res


IDF_PATH = os.getenv('IDF_PATH', os.getcwd())
EXECUTABLE_LIST_FN = os.path.join(IDF_PATH, 'tools/ci/executable-list.txt')
repo_dir = os.getcwd()
EXECUTABLE_LIST_FN = os.path.join(repo_dir, 'tools/ci/executable-list.txt')
known_executables = _strip_each_item(open(EXECUTABLE_LIST_FN).readlines())


def check_executable_list() -> int:
ret = 0
for index, fn in enumerate(known_executables):
if not os.path.exists(os.path.join(IDF_PATH, fn)):
if not os.path.exists(os.path.join(repo_dir, fn)):
print('{}:{} {} not exists. Please remove it manually'.format(EXECUTABLE_LIST_FN, index + 1, fn))
ret = 1
return ret
Expand Down

0 comments on commit e671f83

Please sign in to comment.