ci(common): Introduce global warning list file

This commit is contained in:
David Cermak
2023-06-28 16:49:37 +02:00
parent f1eb46580e
commit 2bd6163ec8
2 changed files with 6 additions and 1 deletions

View File

@ -32,7 +32,11 @@ if __name__ == '__main__':
IDF_PATH = os.environ['IDF_PATH']
ignore_warning = os.environ['EXPECTED_WARNING'] if 'EXPECTED_WARNING' in os.environ else None
# Compose the ignore warning strings from the global list and from the environment
ignore_warning_file = os.path.join(os.path.dirname(os.path.realpath(__file__)),'ignore_build_warnings.txt')
ignore_warning = open(ignore_warning_file).read().rstrip('\n').split('\n')
if 'EXPECTED_WARNING' in os.environ:
ignore_warning += os.environ['EXPECTED_WARNING'].split('\n')
if args.linux:
SUPPORTED_TARGETS.append('linux')
ignore_warning = 'warning: ' # Ignore all common warnings on linux builds

View File

@ -0,0 +1 @@
DeprecationWarning: pkg_resources is deprecated as an API