@@ -203,6 +203,7 @@ def _build(app, board, toolchain, jobs, env, cwd, args):
203
203
if args .very_very_verbose :
204
204
print (out )
205
205
print (f"{ app : <30} { board : <30} PASS" )
206
+ return True
206
207
except subprocess .CalledProcessError as err :
207
208
err .output = err .output .decode ("utf-8" , errors = "replace" )
208
209
lines = err .output .split ("\n " )
@@ -215,6 +216,7 @@ def _build(app, board, toolchain, jobs, env, cwd, args):
215
216
print (f"{ app : <30} { board : <30} FAIL: Kconfig hash mismatch" )
216
217
else :
217
218
print (f"{ app : <30} { board : <30} FAIL" )
219
+ return False
218
220
219
221
220
222
def main ():
@@ -263,6 +265,7 @@ def main():
263
265
if 'all' in apps :
264
266
apps = _all_apps (riot_dir )
265
267
268
+ ret = 0
266
269
for app in apps :
267
270
test_dir = str (pathlib .PurePath (riot_dir , app ))
268
271
if not pathlib .Path (test_dir ).exists ():
@@ -283,10 +286,12 @@ def main():
283
286
_modules_packages (app , board , args .jobs , full_env , riot_dir ,
284
287
args )
285
288
else :
286
- _build (app , board , args .toolchain , args .jobs , full_env ,
287
- riot_dir , args )
289
+ if not _build (app , board , args .toolchain , args .jobs , full_env ,
290
+ riot_dir , args ):
291
+ ret = - 1
288
292
elapse_time = datetime .datetime .now () - start_time
289
293
_end (elapse_time .total_seconds (), args .jobs )
294
+ exit (ret )
290
295
291
296
292
297
if __name__ == '__main__' :
0 commit comments