Exemplo n.º 1
0
 function finish($bundle)
 {
     // Check for annotations
     foreach ($bundle->annotations as $annotation) {
         $failure = $annotation->post_process($bundle);
         if ($failure) {
             $this->async_failure($failure, $bundle);
             return;
         }
     }
     $this->async_success($bundle);
     // Mark if the success was an expected failure
     if (isset($bundle->expected_failure) && $bundle->expected_failure) {
         $this->solo_tests++;
         write_dependencies($this->get_name(), $bundle->subject, false);
     }
 }
Exemplo n.º 2
0
 function mark_failure($subject, $commands, $outs = "Not relevent", $errs = "Not relevent", $exits = "Not relevent", $reason = "TODO - no reason given")
 {
     write_dependencies($this->get_name(), $subject, false);
     log_failure($this->get_name(), $subject, $commands, $outs, $errs, $exits, isset($this->missing_dependencies[$subject]) ? $this->missing_dependencies[$subject] : NULL, $reason);
     log_status("failure", $this->get_name(), $subject, $reason);
     $this->erase_progress_bar();
     $this->display_progress_bar();
     $this->failures++;
     $this->total++;
     $this->update_count();
 }