simpletest_script_print_error("Parallel test execution requires the Process Control extension to be compiled in PHP. See http://php.net/manual/en/intro.pcntl.php for more information.");
exit;
}
return array($args, $count);
}
...
...
@@ -310,93 +305,96 @@ function simpletest_script_init($server_software) {
/**
* Execute a batch of tests.
*/
function simpletest_script_execute_batch(){
function simpletest_script_execute_batch($test_id, $test_classes){
global $args;
if(!isset($args['test-id'])){
simpletest_script_print_error("--execute-batch should not be called interactively.");
exit;
}
if($args['concurrency']== 1){
// Fallback to mono-threaded execution.
if(count($args['test_names'])> 1){
foreach ($args['test_names'] as $test_class){
// Execute each test in its separate Drupal environment.