Index: modules/simpletest/drupal_web_test_case.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v
retrieving revision 1.108
diff -u -r1.108 drupal_web_test_case.php
--- modules/simpletest/drupal_web_test_case.php	26 May 2009 08:46:03 -0000	1.108
+++ modules/simpletest/drupal_web_test_case.php	27 May 2009 00:14:40 -0000
@@ -959,9 +959,16 @@
     $this->preloadRegistry();
 
     // Add the specified modules to the list of modules in the default profile.
-    $args = func_get_args();
-    $modules = array_unique(array_merge(drupal_get_profile_modules('default', 'en'), $args));
-    drupal_install_modules($modules, TRUE);
+    // Install the modules specified by the default profile.
+    $core_modules = drupal_get_profile_modules('default', 'en');
+    drupal_install_modules($core_modules, TRUE);
+
+    // Install additional modules one at a time in order to make sure that the
+    // list of modules is updated between each module's installation.
+    $modules = func_get_args();
+    foreach ($modules as $module) {
+      drupal_install_modules(array($module), TRUE);
+    }
 
     // Because the schema is static cached, we need to flush
     // it between each run. If we don't, then it will contain
