public static boolean queryListRunnerSingleThreaded(File[] qfiles, QTestUtil[] qt)
      throws Exception {
    boolean failed = false;
    qt[0].cleanUp();
    qt[0].createSources();
    for (int i = 0; i < qfiles.length && !failed; i++) {
      qt[i].clearTestSideEffects();
      qt[i].cliInit();
      qt[i].executeClient();
      QTestProcessExecResult result = qt[i].checkCliDriverResults();
      if (result.getReturnCode() != 0) {
        failed = true;
        StringBuilder builder = new StringBuilder();
        builder.append("Test ").append(qfiles[i].getName())
            .append(" results check failed with error code ").append(result.getReturnCode());
        if (StringUtils.isNotEmpty(result.getCapturedOutput())) {
          builder.append(" and diff value ").append(result.getCapturedOutput());
        }
        System.err.println(builder.toString());
        System.err.println(QTestUtil.DEBUG_HINT);
        System.err.flush();
      }
      qt[i].clearPostTestEffects();
    }
    return (!failed);
  }
Executes a set of query files in sequence.

@param qfiles array of input query files containing arbitrary number of hive queries
@param qt array of QTestUtils, one per qfile
@return true if all queries passed, false otw
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestRunnerUtils.java