I'd prefer not adding Python to the tree. I thought I mentioned that on IRC, but perhaps I didn't.
Beyond that though, it seems nicer to implement something like this by integrating with the existing test infrastructure. I.e., using SHADER_TEST_LOG_DRIVER in Makefile.am to set a custom log driver; see bin/test-driver for how the default driver works.