|
26 | 26 | ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
27 | 27 | sys.path.insert(0, ROOT)
|
28 | 28 |
|
| 29 | +from tools.config import ConfigException |
29 | 30 | from tools.test_api import test_path_to_name, find_tests, print_tests, build_tests, test_spec_from_test_builds
|
30 | 31 | from tools.options import get_default_options_parser, extract_profile
|
31 | 32 | from tools.build_api import build_project, build_library
|
|
121 | 122 | "Currently set search path: %s"
|
122 | 123 | % (toolchain, search_path))
|
123 | 124 |
|
124 |
| - # App config |
125 |
| - # Disable finding `mbed_app.json` files in the source tree if not |
126 |
| - # explicitly defined on the command line. Config system searches for |
127 |
| - # `mbed_app.json` files if `app_config` is None, but will set the |
128 |
| - # app config data to an empty dictionary if the path value is another |
129 |
| - # falsey value besides None. |
130 |
| - if options.app_config is None: |
131 |
| - options.app_config = '' |
132 |
| - |
133 | 125 | # Find all tests in the relevant paths
|
134 | 126 | for path in all_paths:
|
135 | 127 | all_tests.update(find_tests(path, mcu, toolchain,
|
|
261 | 253 |
|
262 | 254 | except KeyboardInterrupt, e:
|
263 | 255 | print "\n[CTRL+c] exit"
|
| 256 | + except ConfigException, e: |
| 257 | + # Catching ConfigException here to prevent a traceback |
| 258 | + print "[ERROR] %s" % str(e) |
264 | 259 | except Exception,e:
|
265 | 260 | import traceback
|
266 | 261 | traceback.print_exc(file=sys.stdout)
|
|
0 commit comments