[PATCH] WIP: CDash changes needed to adapt to simpletest 1.1.0

David Cole DLRdave at aol.com
Tue Jan 29 20:34:16 UTC 2013


---
 tests/kwtest/kw_test_manager.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/kwtest/kw_test_manager.php b/tests/kwtest/kw_test_manager.php
index c82e73b..b42182e 100644
--- a/tests/kwtest/kw_test_manager.php
+++ b/tests/kwtest/kw_test_manager.php
@@ -54,7 +54,7 @@ class TestManager
     }
   function runFileTest(&$reporter, $file)
   {
-    $test = &new GroupTest('All Tests');
+    $test = &new TestSuite('All Tests');
     if($this->testDir !== null)
       {
       $path = $this->testDir.  "/" . $file;
@@ -64,7 +64,7 @@ class TestManager
       $path = $file;
       }
     print "$path\n";
-    $test->addTestFile($path);
+    $test->addFile($path);
     return $test->run($reporter);
   }
   /**
@@ -74,7 +74,7 @@ class TestManager
      */
   function runAllTests(&$reporter) {
     $testsFile = $this->getTestCaseList();
-    $test = &new GroupTest('All Tests');
+    $test = &new TestSuite('All Tests');
     foreach($testsFile as $path=>$file)
       {
       $test->addTestFile($path);
@@ -213,7 +213,7 @@ class CDashTestManager extends TestManager
      * @return the result of the test
      * @param object $reporter
      */
-   function runAllTests($reporter)
+   function runAllTests(&$reporter)
      {
      $reporter->paintTestCaseList($this->getTestCaseList());
      parent::runAllTests($reporter);
@@ -479,7 +479,7 @@ class CDashTestManager extends TestManager
 
 class HtmlTestManager extends TestManager
 {
-   function runAllTests($reporter)
+   function runAllTests(&$reporter)
      {
      $this->_uninstalldb4test($this->database['host'],
                               $this->database['port'],
-- 
1.8.0.msysgit.0


----------MB_8CFCE22DE0A8E2E_1D30_2C96B_webmail-m011.sysops.aol.com--


More information about the CDash mailing list