From e85187d948fc997edc7c8332b6e0cc62d28b9008 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 15 Oct 2008 14:17:27 +0000 Subject: - Patch #320374 by Damien Tournoud, pwolanin et al: worked around a max_allowed_packet size issue with the simpletests. --- modules/simpletest/simpletest.module | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/simpletest/simpletest.module') 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(); } /** -- cgit v1.2.3