Skip to content
Snippets Groups Projects
Commit 8d7eeb0d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent a7d66871
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment