diff --git a/src/main/java/org/nuxeo/tools/gatling/report/App.java b/src/main/java/org/nuxeo/tools/gatling/report/App.java index 085cc24..c94b0e7 100644 --- a/src/main/java/org/nuxeo/tools/gatling/report/App.java +++ b/src/main/java/org/nuxeo/tools/gatling/report/App.java @@ -60,12 +60,16 @@ protected void parseSimulationFiles() { } protected void parseSimulationFile(File file) { - log.info("Parsing " + file.getAbsolutePath()); + if(file.isDirectory()) { + file = file.toPath().resolve("simulation.log").toFile(); + } + final String absolutePath = file.getAbsolutePath(); + log.info("Parsing " + absolutePath); try { SimulationParser parser = ParserFactory.getParser(file, options.apdexT); stats.add(parser.parse()); } catch (IOException e) { - log.error("Invalid file: " + file.getAbsolutePath(), e); + log.error("Invalid file: " + absolutePath, e); } }