From 8d7eeb0df6c7e7870106f62f07c94a0d3aa95d9d Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Thu, 18 Dec 2008 03:55:02 +0000
Subject: [PATCH] - Modified patch #348408 by boombatower: clariy run-test.sh
 script and provide some better help.

---
 scripts/run-tests.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 8066a3195435..382e11adddae 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -142,9 +142,12 @@ function simpletest_script_help() {
               be separated by commas.  Ignored if --all is specified.
 
 To run this script you will normally invoke it from the root directory of your
-Drupal installation as the webserver user, or root, with
+Drupal installation as the webserver user (differs per configuration), or root:
 
-php  ./scripts/{$args['script']}
+sudo -u [wwwrun|www-data|etc] php ./scripts/{$args['script']}
+  --url http://example.com/ --all
+sudo -u [wwwrun|www-data|etc] php ./scripts/{$args['script']}
+  --url http://example.com/ --class UploadTestCase
 \n
 EOF;
 }
@@ -243,6 +246,7 @@ function simpletest_script_init() {
   }
   else {
     simpletest_script_print_error('Unable to automatically determine the path to the PHP interpreter. Please supply the --php command line argument.');
+    simpletest_script_help();
     exit();
   }
 
-- 
GitLab