Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3fc8b8b3
Commit
3fc8b8b3
authored
Jan 15, 2010
by
Dries Buytaert
Browse files
- Patch
#683814
by yched: remove unneeded call to batch_process().
parent
c1d2d11f
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/simpletest/simpletest.module
View file @
3fc8b8b3
...
...
@@ -165,13 +165,7 @@ function simpletest_run_tests($test_list, $reporter = 'drupal') {
module_invoke_all
(
'test_group_started'
);
// Normally, the forms portion of the batch API takes care of calling
// batch_process(), but in the process it saves the whole $form into the
// database (which is huge for the test selection form).
// By calling batch_process() directly, we skip that behavior and ensure
// that we don't exceed the size of data that can be sent to the database
// (max_allowed_packet on MySQL).
batch_process
(
'admin/config/development/testing/results/'
.
$test_id
);
return
$test_id
;
}
/**
...
...
modules/simpletest/simpletest.pages.inc
View file @
3fc8b8b3
...
...
@@ -190,7 +190,8 @@ function simpletest_test_form_submit($form, &$form_state) {
}
}
if
(
count
(
$tests_list
)
>
0
)
{
simpletest_run_tests
(
$tests_list
,
'drupal'
);
$test_id
=
simpletest_run_tests
(
$tests_list
,
'drupal'
);
$form_state
[
'redirect'
]
=
'admin/config/development/testing/results/'
.
$test_id
;
}
else
{
drupal_set_message
(
t
(
'No test(s) selected.'
),
'error'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment