[igt-dev] [PATCH i-g-t 1/2] runner: Inject a message when killing test to taints

Arkadiusz Hiler arkadiusz.hiler at intel.com
Thu Jun 18 12:26:53 UTC 2020


On Thu, Jun 18, 2020 at 03:06:22PM +0300, Petri Latvala wrote:
> Normally runner injecting a message to the test's stdout/stderr logs
> has a race condition; The test outputs have special lines (subtest
> starting/ending) and accidentally injecting stuff in between would
> cause funky results.
> 
> When we're killing a test because the kernel got tainted, we know
> already that we're not getting a subtest ending line and we can
> inject, if we make sure we have newlines printed before and after the
> injection.
> 
> Having a message in the stdout of the test will aid automatic bug
> filtering.
> 
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>

Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>


More information about the igt-dev mailing list