summaryrefslogtreecommitdiff
path: root/modules/simpletest/simpletest.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-10-15 14:17:27 +0000
committerDries Buytaert <dries@buytaert.net>2008-10-15 14:17:27 +0000
commite85187d948fc997edc7c8332b6e0cc62d28b9008 (patch)
tree7b5bc28dfe13ec49b04374b54c94e0811fc79e0c /modules/simpletest/simpletest.module
parent305d14412cb85673934800fef40f77443c348a01 (diff)
downloadbrdo-e85187d948fc997edc7c8332b6e0cc62d28b9008.tar.gz
brdo-e85187d948fc997edc7c8332b6e0cc62d28b9008.tar.bz2
- Patch #320374 by Damien Tournoud, pwolanin et al: worked around a max_allowed_packet size issue with the simpletests.
Diffstat (limited to 'modules/simpletest/simpletest.module')
-rw-r--r--modules/simpletest/simpletest.module7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module
index c7504cca8..372ad1f3f 100644
--- a/modules/simpletest/simpletest.module
+++ b/modules/simpletest/simpletest.module
@@ -337,6 +337,13 @@ function simpletest_run_tests($test_list, $reporter = 'drupal') {
'init_message' => t('SimpleTest is initializing...') . ' ' . format_plural(count($test_list), "one test case will run.", "@count test cases will run."),
);
batch_set($batch);
+ // 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();
}
/**