zephyr/scripts/sanity_chk
Andy Ross 5efdd6a525 sanitycheck harness: Correct ordered regex handling
The way sanitycheck did its ordered regexes is that it would test
every regex against every line, and store the matching lines and their
regexes in an OrderedDict and check that they happened in the right
order.

That's wrong, because it disallows matching against a line that
previously appeared (and should have been ignored) in the input
stream.  The watchdog sample is the best illustration: the first boot
will (by definition) contain all the output already, but the regex has
to match against a line from the SECOND boot and not the same one it
saw earlier.

Do this the simple way: keep a counter of which regex we're trying to
apply next and increment it on a match.  This is faster too as we only
need to check one pattern per line.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-06-19 14:37:20 -04:00
..
boards/unit/unit_testing
.gitignore
expr_parser.py scripts: Remove extra trailing newlines from Python scripts 2019-03-26 07:53:08 -05:00
harness.py sanitycheck harness: Correct ordered regex handling 2019-06-19 14:37:20 -04:00
ini2yaml.py license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
sanity_compare.args
sanity_daily.args
sanity_last_release.csv release: update footprint data 2019-04-15 20:31:52 -04:00
sanity_verify.args
sanitycheck-platform-schema.yaml
sanitycheck-tc-schema.yaml sanitycheck: remove unused platforms keyword 2018-11-19 15:03:55 -05:00
scl.py license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00