Commit 77a6a262 authored by catch's avatar catch

Issue #2421335 by alexpott: Using run-tests.sh with the --list option should...

Issue #2421335 by alexpott: Using run-tests.sh with the --list option should not require a db (of any kind)
parent 9dd8de4d
......@@ -41,6 +41,20 @@
exit;
}
if ($args['list']) {
// Display all available tests.
echo "\nAvailable test groups & classes\n";
echo "-------------------------------\n\n";
$groups = simpletest_test_get_all($args['module']);
foreach ($groups as $group => $tests) {
echo $group . "\n";
foreach ($tests as $class => $info) {
echo " - $class\n";
}
}
exit;
}
simpletest_script_setup_database(TRUE);
if ($args['clean']) {
......@@ -56,20 +70,6 @@
exit;
}
if ($args['list']) {
// Display all available tests.
echo "\nAvailable test groups & classes\n";
echo "-------------------------------\n\n";
$groups = simpletest_test_get_all($args['module']);
foreach ($groups as $group => $tests) {
echo $group . "\n";
foreach ($tests as $class => $info) {
echo " - $class\n";
}
}
exit;
}
$test_list = simpletest_script_get_test_list();
// Try to allocate unlimited time to run the tests.
......
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