Created
September 26, 2011 20:23
-
-
Save Tyrael/1243297 to your computer and use it in GitHub Desktop.
run-tests test redirects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: run-tests.php | |
=================================================================== | |
--- run-tests.php (revision 317341) | |
+++ run-tests.php (working copy) | |
@@ -2415,24 +2415,34 @@ | |
function show_redirect_start($tests, $tested, $tested_file) | |
{ | |
- global $html_output, $html_file; | |
+ global $html_output, $html_file, $line_length, $SHOW_ONLY_GROUPS; | |
if ($html_output) { | |
fwrite($html_file, "<tr><td colspan='3'>---> $tests ($tested [$tested_file]) begin</td></tr>\n"); | |
} | |
- echo "---> $tests ($tested [$tested_file]) begin\n"; | |
+ if (!$SHOW_ONLY_GROUPS || in_array('--->', $SHOW_ONLY_GROUPS)) { | |
+ echo "---> $tests ($tested [$tested_file]) begin\n"; | |
+ } else { | |
+ // Write over the last line to avoid random trailing chars on next echo | |
+ echo str_repeat(" ", $line_length), "\r"; | |
+ } | |
} | |
function show_redirect_ends($tests, $tested, $tested_file) | |
{ | |
- global $html_output, $html_file; | |
+ global $html_output, $html_file, $line_length, $SHOW_ONLY_GROUPS; | |
if ($html_output) { | |
fwrite($html_file, "<tr><td colspan='3'>---> $tests ($tested [$tested_file]) done</td></tr>\n"); | |
} | |
- echo "---> $tests ($tested [$tested_file]) done\n"; | |
+ if (!$SHOW_ONLY_GROUPS || in_array('--->', $SHOW_ONLY_GROUPS)) { | |
+ echo "---> $tests ($tested [$tested_file]) done\n"; | |
+ } else { | |
+ // Write over the last line to avoid random trailing chars on next echo | |
+ echo str_repeat(" ", $line_length), "\r"; | |
+ } | |
} | |
function show_test($test_idx, $shortname) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment