summaryrefslogtreecommitdiff
path: root/scripts/run-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run-tests.sh')
-rwxr-xr-xscripts/run-tests.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 37d3c4399..26d724492 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -70,10 +70,8 @@ if ($args['list']) {
$test_list = simpletest_script_get_test_list();
-// If not in 'safe mode', increase the maximum execution time.
-if (!ini_get('safe_mode')) {
- set_time_limit(0);
-}
+// Try to allocate unlimited time to run the tests.
+drupal_set_time_limit(0);
simpletest_script_reporter_init();