Ensure we dont include the AllTests.php from the Test package.
authorGunnar Wrobel <wrobel@temple.(none)>
Wed, 10 Feb 2010 16:37:35 +0000 (17:37 +0100)
committerGunnar Wrobel <wrobel@temple.(none)>
Wed, 10 Feb 2010 16:37:35 +0000 (17:37 +0100)
framework/bin/test_framework

index 263f450..9d46765 100755 (executable)
@@ -40,7 +40,7 @@ class horde_test_runner
 
         // Find all AllTests.php files.
         foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($basedir)) as $file) {
-            if ($file->isFile() && $file->getFilename() == 'AllTests.php' && $file->getPathname() != __FILE__) {
+            if ($file->isFile() && $file->getFilename() == 'AllTests.php' && $file->getPathname() != __FILE__ && $file->getPathname() != $basedir . '/Test/lib/Horde/Test/AllTests.php') {
                 $pathname = $file->getPathname();
 
                 // Include the test suite.