test-run-tests: fix stdout/stderr io ordering

--HG--
branch : stable