Modified misra.py to fix issue introduced during last change (#1101)

Added additional elif confition to cause error checks to ignore .dump files
Previous change meant that .dump always falls into else statement and script exits
This commit is contained in:
Jonathan Clohessy 2018-02-26 21:08:22 +00:00 committed by Daniel Marjamäki
parent 17b5083f3f
commit 589cc6049d
1 changed files with 2 additions and 0 deletions

View File

@ -1119,6 +1119,8 @@ for arg in sys.argv[1:]:
loadRuleTexts(filename)
elif arg.startswith('--misra-pdf='):
loadRuleTextsFromPdf(arg[12:])
elif ".dump" in arg:
continue
else:
print('Fatal error: unhandled argument ' + arg)
sys.exit(1)