private String truncatefNeeded(String orig) {
    if (orig.length() > MAX_OUTPUT_CHAR_LENGTH) {
      return orig.substring(0, MAX_OUTPUT_CHAR_LENGTH) + "\r\n" + TRUNCATED_OUTPUT;
    } else {
      return orig;
    }
  }
@return output captured from stdout while process was executing
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestProcessExecResult.java