()
| 1494 | } |
| 1495 | |
| 1496 | public static ExecType getLocalTestMode() throws Exception { |
| 1497 | String execType = System.getProperty("test.exec.type"); |
| 1498 | if (execType != null) { |
| 1499 | if (execType.equals("tez")) { |
| 1500 | return ExecTypeProvider.fromString("tez_local"); |
| 1501 | } else if (execType.equals("spark")) { |
| 1502 | return ExecTypeProvider.fromString("spark_local"); |
| 1503 | } |
| 1504 | } |
| 1505 | |
| 1506 | return ExecTypeProvider.fromString("local"); |
| 1507 | } |
| 1508 | |
| 1509 | public static void createLogAppender(String appenderName, Writer writer, Class...clazzes) { |
| 1510 | WriterAppender writerAppender = new WriterAppender(new PatternLayout("%d [%t] %-5p %c %x - %m%n"), writer); |
no test coverage detected