summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-15 04:16:57 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-15 04:16:57 +0000
commit3fc8b8b3f301f2e9cb83c1cc9c9baee454b5fa54 (patch)
treed0d95656943cbec93290c3a4827daba124ab6457
parentc1d2d11f92fed85c8577922fdbe95dc285ddacef (diff)
downloadbrdo-3fc8b8b3f301f2e9cb83c1cc9c9baee454b5fa54.tar.gz
brdo-3fc8b8b3f301f2e9cb83c1cc9c9baee454b5fa54.tar.bz2
- Patch #683814 by yched: remove unneeded call to batch_process().
-rw-r--r--modules/simpletest/simpletest.module8
-rw-r--r--modules/simpletest/simpletest.pages.inc3
2 files changed, 3 insertions, 8 deletions
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module
index 6c50ffa1c..15cb2353a 100644
--- a/modules/simpletest/simpletest.module
+++ b/modules/simpletest/simpletest.module
@@ -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;
}
/**
diff --git a/modules/simpletest/simpletest.pages.inc b/modules/simpletest/simpletest.pages.inc
index 66e423ba3..dcf6fb553 100644
--- a/modules/simpletest/simpletest.pages.inc
+++ b/modules/simpletest/simpletest.pages.inc
@@ -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');