You are here

function _patterns_drush_test_check_results in Patterns 7.2

1 call to _patterns_drush_test_check_results()
drush_patterns_test_regular_expression in ./patterns.drush.inc

File

./patterns.drush.inc, line 762
Drush Patterns module commands

Code

function _patterns_drush_test_check_results($results) {
  $return = array();
  foreach ($results as $area => $tests) {
    $return[$area] = 0;
    foreach ($tests as $result) {
      if ($result->status == 'fail') {
        $return[$area]++;
        drush_set_error(drush_html_to_text($result->message));

        //       print $area; // . + ': ' . $result->message;
      }
    }
  }
  return $return;
}