In tests where stdio is redirected to a file, the file must be copied back from the remote host for analysis by the test.
Looks good.
Committed revision 228175.