Index: run_all_tests.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/run_all_tests.php,v
retrieving revision 1.3.6.1
diff -u -p -r1.3.6.1 run_all_tests.php
--- run_all_tests.php	26 Feb 2008 19:16:21 -0000	1.3.6.1
+++ run_all_tests.php	10 Jun 2008 20:07:33 -0000
@@ -24,6 +24,11 @@ else {
   	exit("bootstrap.inc could not be loaded\n");
   }
 }
+
+// If we are run from the command line, we need to make Drupal thing
+// we are index.php because otherwise base_path() will end up
+// including the path to this file and everything will break.
+$_SERVER['SCRIPT_NAME'] = '/index.php';
 drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
 
 //load simpletest files
