scripts: sanitycheck: If error happens accessing YAML data, go on
Extend exception handling to cover not just YAML loading, but any error while accessing parsed data too. That may catch e.g. schema mismatch errors (for folks who don't have pykwalify installed, which is optional). So, now error will be logged, but processing of other tests will continue. For example, I had a local, uncommitted test which wasn't converted per 23f81eeb and caused: Traceback (most recent call last): File "./scripts/sanitycheck", line 2456, in <module> main() File "./scripts/sanitycheck", line 2324, in main options.outdir, options.coverage) File "./scripts/sanitycheck", line 1445, in __init__ for name in parsed_data.tests.keys(): AttributeError: 'list' object has no attribute 'keys' Signed-off-by:Paul Sokolovsky <paul.sokolovsky@linaro.org>
Loading
Please sign in to comment