> This is redirected to a file on the Unix shell level. I suppose in Lua there is also a stdout variable that can be modified to redirect print() etc?

you can change `io.output()` and that makes `io.write(...)` to go another file, but that doesn't affect `print()`.  of course, that's easy to patch: `print=function(...) io.write(table.concat({...},'\t'),'\n') end`.  but if i'm doing that, i'd prefer to make `print()` go to the test log and not to another file.