Index: sites/all/modules/simpletest/simpletest.module
===================================================================
--- sites/all/modules/simpletest/simpletest.module	(revision 200)
+++ sites/all/modules/simpletest/simpletest.module	(working copy)
@@ -232,10 +232,9 @@
     
     switch (get_class($reporter)) {
       case 'TextReporter':
-        exit ($results ? 0 : 1);
       case 'XMLReporter':
       case 'HtmlReporter':
-      	break;
+        return $results;
       case 'DrupalReporter':
       	return $reporter->getOutput();
     }
Index: sites/all/modules/simpletest/drupal_unit_tests.php
===================================================================
--- sites/all/modules/simpletest/drupal_unit_tests.php	(revision 200)
+++ sites/all/modules/simpletest/drupal_unit_tests.php	(working copy)
@@ -108,7 +108,7 @@
       $GLOBALS['devel_shutdown'] = FALSE;
     }
 
-    parent::run($reporter);
+    $result = parent::run($reporter);
 
     // Restores modules
     foreach ($this->_cleanupModules as $name => $status) {
@@ -116,6 +116,7 @@
     }
     $this->_cleanupModules = array();
 
+    return $result;
   }
 
   /**
