From 8d7eeb0df6c7e7870106f62f07c94a0d3aa95d9d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 18 Dec 2008 03:55:02 +0000 Subject: - 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(-) (limited to 'scripts/run-tests.sh') diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index 8066a3195..382e11add 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -142,9 +142,12 @@ All arguments are long options. 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(); } -- cgit v1.2.3