Esempio n. 1
0
 private PoolSummary compilePoolSummary(Pool pool) {
   PoolSummary.Builder poolSummaryBuilder = aPoolSummary().withPoolName(pool.getName());
   for (Device device : pool.getDevices()) {
     compileResultsForDevice(pool, poolSummaryBuilder, device);
   }
   Device watchdog = getPoolWatchdog(pool.getName());
   compileResultsForDevice(pool, poolSummaryBuilder, watchdog);
   return poolSummaryBuilder.build();
 }
Esempio n. 2
0
 private void compileResultsForDevice(
     Pool pool, PoolSummary.Builder poolSummaryBuilder, Device device) {
   File[] deviceResultFiles = fileManager.getTestFilesForDevice(pool, device);
   if (deviceResultFiles == null) {
     return;
   }
   for (File file : deviceResultFiles) {
     Collection<TestResult> testResults = parseTestResultsFromFile(file, device);
     poolSummaryBuilder.addTestResults(testResults);
   }
 }