Index: settings.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/settings.inc,v
retrieving revision 1.3
diff -u -p -r1.3 settings.inc
--- settings.inc	6 Oct 2008 15:24:46 -0000	1.3
+++ settings.inc	11 Feb 2010 18:55:08 -0000
@@ -15,6 +15,13 @@
  * @ingroup domain
  */
 
+// If we are in a testing bootstrap, stop processing.
+if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/^(simpletest\d+);/", $_SERVER['HTTP_USER_AGENT'], $matches)) {
+  if (drupal_valid_test_ua($_SERVER['HTTP_USER_AGENT'])) {
+    return;
+  }
+}
+
 /**
  * Include bootstrap file, setup checker function and start bootstrap phases.
  */
