Commit 8d7eeb0d authored by Dries's avatar Dries

- Modified patch #348408 by boombatower: clariy run-test.sh script and provide some better help.

parent a7d66871
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment