Skip to content

Commit 6a99b23

Browse files
author
deepikabhavnani
committed
Add test macro MBED_TEST when building with mbed test
1 parent 8292aff commit 6a99b23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@
126126
all_tests = {}
127127
tests = {}
128128

129+
# Add the test macro, when compiling all test
130+
if options.macros is None:
131+
options.macros = ['MBED_TEST']
132+
else:
133+
options.macros.append(['MBED_TEST'])
134+
129135
# Target
130136
if options.mcu is None :
131137
args_error(parser, "argument -m/--mcu is required")

0 commit comments

Comments
 (0)