Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Show test counter even if we only show certain result groups
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Sep 3, 2015
1 parent 4313919 commit 67416aa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -1368,9 +1368,7 @@ function run_test($php, $file, $env)
}
}

if (!$SHOW_ONLY_GROUPS) {
show_test($test_idx, $shortname);
}
show_test($test_idx, $shortname);

if (is_array($IN_REDIRECT)) {
$temp_dir = $test_dir = $IN_REDIRECT['dir'];
Expand Down Expand Up @@ -2563,8 +2561,13 @@ function show_test($test_idx, $shortname)
{
global $test_cnt;
global $line_length;
global $SHOW_ONLY_GROUPS;

$str = "TEST $test_idx/$test_cnt [$shortname]\r";
$str = "TEST $test_idx/$test_cnt";
if (!$SHOW_ONLY_GROUPS) {
$str .= " [$shortname]";
}
$str .= "\r";
$line_length = strlen($str);
echo $str;
flush();
Expand Down

0 comments on commit 67416aa

Please sign in to comment.