diff options
author | Dries <dries@buytaert.net> | 2012-01-24 14:25:45 -0500 |
---|---|---|
committer | Dries <dries@buytaert.net> | 2012-01-24 14:25:45 -0500 |
commit | 3e65eb96874928768aa16fd83abc6b0ded41b6ef (patch) | |
tree | c8817d393f0985a432d91082ffc36d336953877d /scripts | |
parent | d7946ebdda4527152ef8a912246c316c9157dc57 (diff) | |
download | brdo-3e65eb96874928768aa16fd83abc6b0ded41b6ef.tar.gz brdo-3e65eb96874928768aa16fd83abc6b0ded41b6ef.tar.bz2 |
- Patch #666854 by TR, JacobSingh: fixed E_NOTICE warnings in run_tests().sh .
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/run-tests.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index 429b28b24..b7d81830b 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -585,9 +585,8 @@ function simpletest_script_reporter_display_results() { if ($args['verbose']) { // Report results. - echo "Detailed test results:\n"; - echo "----------------------\n"; - echo "\n"; + echo "Detailed test results\n"; + echo "---------------------\n"; $results = db_query("SELECT * FROM {simpletest} WHERE test_id = :test_id ORDER BY test_class, message_id", array(':test_id' => $test_id)); $test_class = ''; @@ -597,6 +596,10 @@ function simpletest_script_reporter_display_results() { // Display test class every time results are for new test class. echo "\n\n---- $result->test_class ----\n\n\n"; $test_class = $result->test_class; + + // Print table header. + echo "Status Group Filename Line Function \n"; + echo "--------------------------------------------------------------------------------\n"; } simpletest_script_format_result($result); @@ -614,8 +617,8 @@ function simpletest_script_reporter_display_results() { function simpletest_script_format_result($result) { global $results_map, $color; - $summary = sprintf("%-10.10s %-10.10s %-30.30s %-5.5s %-20.20s\n", - $results_map[$result->status], $result->message_group, basename($result->file), $result->line, $result->caller); + $summary = sprintf("%-9.9s %-10.10s %-17.17s %4.4s %-35.35s\n", + $results_map[$result->status], $result->message_group, basename($result->file), $result->line, $result->function); simpletest_script_print($summary, simpletest_script_color_code($result->status)); |