Skip to content

Make logParser throw error if top jO is not found

Spyros Argyropoulos requested to merge logParser2 into master

Bug description

If the top-level jO was not found logParser would just give a harmless warning.
This would create issues when e.g. MC15JobOptions includes were used as in !265 (merged).

Changes

If no including file "mc.*.py" lines are found in log.generate, logParser will throw an ERROR.

Test

Tested on Giordon's file in the above MR:

python scripts/logParser.py -i 500xxx/500219/log.generate

---------------------
jobOptions and release:
---------------------
- using release =   AthGenerationExternals-21.6.12 
---------------------
MISSING JOs:
  ERROR: jO not found! (log.generate should contain lines like: including file "mc.*.py") 

...

---------------------
 Summary:
---------------------
Errors : 1 , Warnings : 2   -> Errors encountered! Not ready for production! 

Merge request reports