Skip to content

Commit ed8d49d

Browse files
author
Olli-Pekka Puolitaival
committed
Add silent option in test.py also
1 parent daddc7d commit ed8d49d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tools/test.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,21 @@ def main():
110110
default=False,
111111
help="Verbose diagnostic output")
112112

113+
parser.add_argument("--silent",
114+
action="store_true",
115+
dest="silent",
116+
default=False,
117+
help="Silent diagnostic output (no copy, compile notification)")
118+
113119
parser.add_argument("--stats-depth",
114120
type=int,
115121
dest="stats_depth",
116122
default=2,
117123
help="Depth level for static memory report")
124+
118125
parser.add_argument("--ignore", dest="ignore", type=argparse_many(str),
119126
default=None, help="Comma separated list of patterns to add to mbedignore (eg. ./main.cpp)")
127+
120128
parser.add_argument("--icetea",
121129
action="store_true",
122130
dest="icetea",
@@ -243,7 +251,7 @@ def main():
243251
)
244252

245253
# Build sources
246-
notify = TerminalNotifier(options.verbose)
254+
notify = TerminalNotifier(options.verbose, options.silent)
247255
build_library(base_source_paths, options.build_dir, mcu,
248256
toolchain_name, jobs=options.jobs,
249257
clean=options.clean, report=build_report,
@@ -279,7 +287,7 @@ def main():
279287
resource_filter = None
280288

281289
# Build all the tests
282-
notify = TerminalNotifier(options.verbose)
290+
notify = TerminalNotifier(options.verbose, options.silent)
283291
test_build_success, test_build = build_tests(
284292
tests,
285293
[os.path.relpath(options.build_dir)],

0 commit comments

Comments
 (0)