test: refactor utility
test: refactor utility

print functions aren't thread safe
To be thread safe output must go via testEnv.echo.
They are also only used by autobuild. Thus moved to autobuild script.

make TestEnv variables private to disallow assignment

limit size of the exception msg
status.output is everything collected which can be hundreds of kb.

ploq/dextool,ploq/dextool,ploq/dextool