]> granicus.if.org Git - php/commitdiff
* output fix for skipped tests
authorStig Bakken <ssb@php.net>
Fri, 8 Dec 2000 12:57:11 +0000 (12:57 +0000)
committerStig Bakken <ssb@php.net>
Fri, 8 Dec 2000 12:57:11 +0000 (12:57 +0000)
run-tests.php

index 27eb2aeb1e20b1af2d32051561b614563b5ee642..ac36e77c213b9c272a86062d32305f412c0600e2 100755 (executable)
@@ -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;