From: Stig Bakken Date: Fri, 8 Dec 2000 12:57:11 +0000 (+0000) Subject: * output fix for skipped tests X-Git-Tag: php-4.0.5RC1~960 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe9290e4a94e20f567340611328862026edace30;p=php * output fix for skipped tests --- diff --git a/run-tests.php b/run-tests.php index 27eb2aeb1e..ac36e77c21 100755 --- a/run-tests.php +++ b/run-tests.php @@ -242,6 +242,9 @@ function run_tests_in_dir($dir = '.') return true; } $oskipped = $skipped; + if (sizeof($testfiles) == 0) { + return; + } writeln("%bRunning tests in $dir%B"); writeln("=================".str_repeat("=", strlen($dir))); sort($testfiles); @@ -261,7 +264,7 @@ function run_tests_in_dir($dir = '.') $total++; } if ($oskipped + (isset($tests_in_dir[$dir])?$tests_in_dir[$dir]:0) == $skipped) { - writeln("(all skipped)"); + writeln("[all $skipped test(s) skipped]"); } writeln(""); return true;