Skip to content

TestTools: add log file context grep utility

Frank Winklmeier requested to merge fwinkl/athena:trigvaltools_cicontext into master

TestTools

Add grep_with_context python function (and unit tests) to new logfiles module. This is a combination of the grep, head and tail command line utilities. It can e.g. be used to print the head, tail and fixed number of lines around errors in a log file. Also delete the unused/broken io_bench test.

TrigValTools

Make use of that new function to avoid printing the full test log files in the CI on failures. Relates to ATLINFR-4450.

cc @tadej in case this might be useful for the workflow tests as well.

Merge request reports