persistor.addValue("messages", result.messages); persistor.addValue("time", result.time);
if (result != null) { persistor.addValue("messages", result.messages); persistor.addValue("time", result.time); }
   public void run()   {      log.info("Running test: " + this.name);            List runners = new ArrayList();            Iterator iter = slaveInfos.iterator();      while (iter.hasNext())      {                  SlaveInfo slaveInfo = (SlaveInfo)iter.next();         log.info("Starting job(s) at slave: " + slaveInfo.name);         Iterator jobs = slaveInfo.getJobs().iterator();         while (jobs.hasNext())         {            Job job = (Job)jobs.next();                 log.info("Starting job: " + job);            JobRunner runner = new JobRunner(job, slaveInfo.locator);            Thread t = new Thread(runner);            runner.setThread(t);            runners.add(runner);            t.start();            log.info("Running job");         }      }            iter = runners.iterator();      while (iter.hasNext())      {         JobRunner runner = (JobRunner)iter.next();         try         {            runner.getThread().join();         }         catch (InterruptedException e)         {}         JobResult result = runner.getResult();                  persistor.addValue("testName", this.name);         persistor.addValue("jobName", runner.getJob().getName());         runner.getJob().fillInResults(persistor);         persistor.addValue("messages", result.messages);         persistor.addValue("time", result.time);         persistor.persist();      }   }