groovy

waitForProcessOutput should also waitFor internally