mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/espcoredump_perm' into 'master'
Tools: Make espcoredump.py executable Closes IDFGH-7782 See merge request espressif/esp-idf!18956
This commit is contained in:
commit
da35323081
0
components/espcoredump/espcoredump.py
Normal file → Executable file
0
components/espcoredump/espcoredump.py
Normal file → Executable file
@ -35,11 +35,14 @@ def check_executable_list():
|
||||
def check_executables(files):
|
||||
ret = 0
|
||||
for fn in files:
|
||||
if not is_executable(fn):
|
||||
continue
|
||||
if fn not in known_executables:
|
||||
fn_executable = is_executable(fn)
|
||||
fn_in_list = fn in known_executables
|
||||
if fn_executable and not fn_in_list:
|
||||
print('"{}" is not in {}'.format(fn, EXECUTABLE_LIST_FN))
|
||||
ret = 1
|
||||
if not fn_executable and fn_in_list:
|
||||
print('"{}" is not executable but is in {}'.format(fn, EXECUTABLE_LIST_FN))
|
||||
ret = 1
|
||||
return ret
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user