Skip to content

Commit 2bd6163

Browse files
committed
ci(common): Introduce global warning list file
1 parent f1eb465 commit 2bd6163

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/build_apps.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232

3333
IDF_PATH = os.environ['IDF_PATH']
3434

35-
ignore_warning = os.environ['EXPECTED_WARNING'] if 'EXPECTED_WARNING' in os.environ else None
35+
# Compose the ignore warning strings from the global list and from the environment
36+
ignore_warning_file = os.path.join(os.path.dirname(os.path.realpath(__file__)),'ignore_build_warnings.txt')
37+
ignore_warning = open(ignore_warning_file).read().rstrip('\n').split('\n')
38+
if 'EXPECTED_WARNING' in os.environ:
39+
ignore_warning += os.environ['EXPECTED_WARNING'].split('\n')
3640
if args.linux:
3741
SUPPORTED_TARGETS.append('linux')
3842
ignore_warning = 'warning: ' # Ignore all common warnings on linux builds

ci/ignore_build_warnings.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DeprecationWarning: pkg_resources is deprecated as an API

0 commit comments

Comments
 (0)