|
211 | 211 | successes = []
|
212 | 212 | skipped = []
|
213 | 213 |
|
214 |
| - # CPPCHECK code validation |
215 |
| - if options.cppcheck_validation: |
216 |
| - for toolchain in toolchains: |
217 |
| - if not TOOLCHAIN_CLASSES[toolchain].check_executable(): |
218 |
| - search_path = TOOLCHAIN_PATHS[toolchain] or "No path set" |
219 |
| - args_error(parser, "Could not find executable for %s.\n" |
220 |
| - "Currently set search path: %s" |
221 |
| - % (toolchain, search_path)) |
222 |
| - for target in targets: |
| 214 | + for toolchain in toolchains: |
| 215 | + if not TOOLCHAIN_CLASSES[toolchain].check_executable(): |
| 216 | + search_path = TOOLCHAIN_PATHS[toolchain] or "No path set" |
| 217 | + args_error(parser, "Could not find executable for %s.\n" |
| 218 | + "Currently set search path: %s" |
| 219 | + % (toolchain, search_path)) |
| 220 | + |
| 221 | + for toolchain in toolchains: |
| 222 | + for target in targets: |
| 223 | + # CPPCHECK code validation |
| 224 | + if options.cppcheck_validation: |
223 | 225 | try:
|
224 | 226 | mcu = TARGET_MAP[target]
|
225 | 227 | # CMSIS and MBED libs analysis
|
|
244 | 246 | traceback.print_exc(file=sys.stdout)
|
245 | 247 | sys.exit(1)
|
246 | 248 | print e
|
247 |
| - else: |
248 |
| - # Build |
249 |
| - for toolchain in toolchains: |
250 |
| - for target in targets: |
| 249 | + else: |
| 250 | + # Build |
251 | 251 | tt_id = "%s::%s" % (toolchain, target)
|
252 | 252 | if toolchain not in TARGET_MAP[target].supported_toolchains:
|
253 | 253 | # Log this later
|
|
299 | 299 | failures.append(tt_id)
|
300 | 300 | print e
|
301 | 301 |
|
| 302 | + |
302 | 303 | # Write summary of the builds
|
303 | 304 | print
|
304 | 305 | print "Completed in: (%.2f)s" % (time() - start)
|
|
0 commit comments