summaryrefslogtreecommitdiff
path: root/scripts/run-tests.sh
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-18 03:55:02 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-18 03:55:02 +0000
commit8d7eeb0df6c7e7870106f62f07c94a0d3aa95d9d (patch)
tree04528ab5795198dfc5b56e1334bce2fed03924a0 /scripts/run-tests.sh
parenta7d66871bd3f9c4709e2e30ad16efc8199ad3455 (diff)
downloadbrdo-8d7eeb0df6c7e7870106f62f07c94a0d3aa95d9d.tar.gz
brdo-8d7eeb0df6c7e7870106f62f07c94a0d3aa95d9d.tar.bz2
- Modified patch #348408 by boombatower: clariy run-test.sh script and provide some better help.
Diffstat (limited to 'scripts/run-tests.sh')
-rwxr-xr-xscripts/run-tests.sh8
1 files changed, 6 insertions, 2 deletions
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();
}