Skip to content

Commit d438324

Browse files
author
Jenny Plunkett
committed
Look for mbed_app.json in root dir if no --app-config is provided
1 parent 2e1c2a1 commit d438324

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@
145145
args_error(parser, "argument --test-config contains invalid path or identifier")
146146
elif not options.app_config:
147147
config = TestConfig.get_default_config(mcu)
148+
if os.path.exists(os.path.abspath(os.path.join("mbed_app.json", ".."))):
149+
config = "mbed_app.json"
148150
else:
149151
config = options.app_config
150152

0 commit comments

Comments
 (0)