mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: fix cleanup_ignore_lists.py on windows
This commit is contained in:
parent
ce7848acb3
commit
c79c16a73e
@ -6,11 +6,12 @@
|
|||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import typing as t
|
import typing as t
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from idf_ci_utils import IDF_PATH
|
from idf_ci_utils import IDF_PATH
|
||||||
|
|
||||||
|
|
||||||
def print_list(_list: t.Iterable[str], title: t.Optional[str] = None) -> None:
|
def print_list(_list: t.Iterable[t.Any], title: t.Optional[str] = None) -> None:
|
||||||
if not _list:
|
if not _list:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -18,15 +19,16 @@ def print_list(_list: t.Iterable[str], title: t.Optional[str] = None) -> None:
|
|||||||
print(title)
|
print(title)
|
||||||
|
|
||||||
for i in _list:
|
for i in _list:
|
||||||
print('- ', i)
|
print('- ', str(i))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
os.chdir(IDF_PATH)
|
os.chdir(IDF_PATH)
|
||||||
ignore_lists = set()
|
ignore_lists: t.Set[Path] = set()
|
||||||
ignore_lists.update(glob.glob('tools/ci/*.txt', recursive=True))
|
ignore_lists.update(Path('tools', 'ci').glob('**/*.txt'))
|
||||||
ignore_lists.remove('tools/ci/ignore_build_warnings.txt')
|
ignore_lists.remove(Path('tools', 'ci', 'ignore_build_warnings.txt'))
|
||||||
ignore_lists.remove('tools/ci/check_ldgen_mapping_exceptions.txt')
|
ignore_lists.remove(Path('tools', 'ci', 'check_ldgen_mapping_exceptions.txt'))
|
||||||
|
|
||||||
print_list(ignore_lists, 'Ignore lists:')
|
print_list(ignore_lists, 'Ignore lists:')
|
||||||
|
|
||||||
updated_files = []
|
updated_files = []
|
||||||
|
Loading…
Reference in New Issue
Block a user