From 2bd6163ec810788fb4279e0b2cb9acfacb31311b Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 28 Jun 2023 16:49:37 +0200 Subject: [PATCH] ci(common): Introduce global warning list file --- ci/build_apps.py | 6 +++++- ci/ignore_build_warnings.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 ci/ignore_build_warnings.txt diff --git a/ci/build_apps.py b/ci/build_apps.py index 78127f09b..a1fd942e9 100644 --- a/ci/build_apps.py +++ b/ci/build_apps.py @@ -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 diff --git a/ci/ignore_build_warnings.txt b/ci/ignore_build_warnings.txt new file mode 100644 index 000000000..8bd511988 --- /dev/null +++ b/ci/ignore_build_warnings.txt @@ -0,0 +1 @@ +DeprecationWarning: pkg_resources is deprecated as an API