public QTestProcessExecResult checkCliDriverResults() throws Exception {
    String tname = inputFile.getName(); 

    String outFileExtension = getOutFileExtension();
    String outFileName = outPath(outDir, tname + outFileExtension);

    File f = new File(logDir, tname + outFileExtension);
    qOutProcessor.maskPatterns(f.getPath());

    if (QTestSystemProperties.shouldOverwriteResults()) {
      qTestResultProcessor.overwriteResults(f.getPath(), outFileName);
      return QTestProcessExecResult.createWithoutOutput(0);
    } else {
      return qTestResultProcessor.executeDiffCommand(f.getPath(), outFileName, false);
    }
  }
Given the current configurations (e.g., hadoop version and execution mode), return
the correct file name to compare with the current test run output.

@param outDir   The directory where the reference log files are stored.
@param testName The test file name (terminated by ".out").
@return The file name appended with the configuration values if it exists.
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java