]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7844 fix ComputationTest using dropped ce_activity.log 1177/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 29 Aug 2016 07:49:08 +0000 (09:49 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 29 Aug 2016 07:50:47 +0000 (09:50 +0200)
tests/perf/src/main/java/org/sonarsource/sonarqube/perf/ServerLogs.java

index 711ee1a59c60d64b2c1e9474e6c50b186f6d3810..9bacd727c2f8080b14793ca1e44d2743b2a52f49 100644 (file)
@@ -65,7 +65,7 @@ public class ServerLogs {
    * 2015.09.29 16:57:45 INFO ce[o.s.s.c.q.CeWorkerRunnableImpl] Executed task | project=com.github.kevinsawicki:http-request-parent | id=AVAZm9oHIXrp54OmOeQe | time=2283ms
    */
   public static Long extractComputationTotalTime(Orchestrator orchestrator) throws IOException {
-    File report = new File(orchestrator.getServer().getLogs().getParent(), "ce_activity.log");
+    File report = orchestrator.getServer().getLogs();
     List<String> logsLines = FileUtils.readLines(report, Charsets.UTF_8);
     return extractComputationTotalTime(logsLines);
   }