Skip to content

Commit e6fe03f

Browse files
Qinghao ShiQinghao Shi
Qinghao Shi
authored and
Qinghao Shi
committed
TOOLS: fix failed python test
1 parent 4482556 commit e6fe03f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

tools/build_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ def prepare_toolchain(src_paths, build_dir, target, toolchain_name,
454454
app_config - location of a chosen mbed_app.json file
455455
build_profile - a list of mergeable build profiles
456456
ignore - list of paths to add to mbedignore
457+
coverage_patterns - list of patterns for code coverage
457458
"""
458459

459460
# We need to remove all paths which are repeated to avoid

tools/toolchains/arm.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def check_executable():
6363
return mbedToolchain.generic_check_executable("ARM", 'armcc', 2, 'bin')
6464

6565
def __init__(self, target, notify=None, macros=None,
66-
build_profile=None, build_dir=None):
66+
build_profile=None, build_dir=None, coverage_patterns=None):
6767
mbedToolchain.__init__(
6868
self, target, notify, macros, build_dir=build_dir,
6969
build_profile=build_profile)
@@ -440,15 +440,17 @@ def __init__(
440440
notify=None,
441441
macros=None,
442442
build_profile=None,
443-
build_dir=None
443+
build_dir=None,
444+
coverage_patterns=None
444445
):
445446
ARM.__init__(
446447
self,
447448
target,
448449
notify,
449450
macros,
450451
build_dir=build_dir,
451-
build_profile=build_profile
452+
build_profile=build_profile,
453+
coverage_patterns=None
452454
)
453455
if int(target.build_tools_metadata["version"]) > 0:
454456
# check only for ARMC5 because ARM_STD means using ARMC5, and thus

tools/toolchains/iar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def check_executable():
4444
)
4545

4646
def __init__(self, target, notify=None, macros=None, build_profile=None,
47-
build_dir=None):
47+
build_dir=None, coverage_patterns=None):
4848
mbedToolchain.__init__(
4949
self,
5050
target,

0 commit comments

Comments
 (0)