public final List<Object[]> getParameters() throws Exception {
    Set<File> f = cliConfig.getQueryFiles();
    List<Object[]> ret = new ArrayList<>();

    for (File file : f) {
      String label = file.getName().replaceAll("\\.[^\\.]+$", "");
      ret.add(new Object[] { label, file });
    }
    return ret;
  }
This class adapts old vm test-executors to be executed in multiple instances
itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliAdapter.java