From caf0789ab323bc10c8dc61d3d79cc62e11dc83ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 12 Mar 2018 15:51:41 +0100 Subject: [PATCH] misra.py: updated -verify behaviour, print all errors seen and not just the first --- addons/misra.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/misra.py b/addons/misra.py index 1e6881378..756dd2b99 100644 --- a/addons/misra.py +++ b/addons/misra.py @@ -1239,11 +1239,13 @@ for arg in sys.argv[1:]: misra_21_11(cfg) if VERIFY: + exitCode = 0 for expected in VERIFY_EXPECTED: if expected not in VERIFY_ACTUAL: print('Expected but not seen: ' + expected) - sys.exit(1) + exitCode = 1 for actual in VERIFY_ACTUAL: if actual not in VERIFY_EXPECTED: print('Not expected: ' + actual) - sys.exit(1) + exitCode = 1 + sys.exit(exitCode)