/** * Poll remote test program process for output log messages. * * @throws IOException */ public synchronized void poll() throws IOException { assertNotNull(process); // read messages from process for (String line; (processOutput.ready() && ((line = processOutput.readLine()) != null));) { logProcessLine(line); } }
for (String line; ((line = processOutput.readLine()) != null);) { if (!line.startsWith(SCRIPT_RESULT_LINE_PREFIX)) { logProcessLine(line); } else { resultLine = line;