misra.py: updated -verify behaviour, print all errors seen and not just the first
This commit is contained in:
parent
a705391054
commit
caf0789ab3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue