summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-22 15:31:18 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-22 15:31:18 +0000
commit153ef8bd7b79fa4063a3994cd653721249e9c465 (patch)
treec5eba601e3aab1b62086a7904ed070e26683d5c5 /includes
parent260dbda9708a68e83b7ab84e1d947abae123a9d1 (diff)
downloadbrdo-153ef8bd7b79fa4063a3994cd653721249e9c465.tar.gz
brdo-153ef8bd7b79fa4063a3994cd653721249e9c465.tar.bz2
- Patch #323477 by justinrandell, boombatower, tstoeckler, Damien Tournoud: increase simpletest speed by running on a simplified profile.
Diffstat (limited to 'includes')
-rw-r--r--includes/install.core.inc5
-rw-r--r--includes/install.inc1
2 files changed, 6 insertions, 0 deletions
diff --git a/includes/install.core.inc b/includes/install.core.inc
index 443ec8aa4..5e16023b2 100644
--- a/includes/install.core.inc
+++ b/includes/install.core.inc
@@ -1111,6 +1111,11 @@ function install_select_profile_form($form, &$form_state, $profile_files) {
include_once DRUPAL_ROOT . '/' . $profile->uri;
$details = install_profile_info($profile->name);
+ // Don't show hidden profiles. This is used by to hide the testing profile,
+ // which only exists to speed up test runs.
+ if ($details['hidden'] === TRUE) {
+ continue;
+ }
$profiles[$profile->name] = $details;
// Determine the name of the profile; default to file name if defined name
diff --git a/includes/install.inc b/includes/install.inc
index 92528d880..e68e272d3 100644
--- a/includes/install.inc
+++ b/includes/install.inc
@@ -1022,6 +1022,7 @@ function install_profile_info($profile, $locale = 'en') {
'description' => '',
'distribution_name' => 'Drupal',
'version' => NULL,
+ 'hidden' => FALSE,
'php' => DRUPAL_MINIMUM_PHP,
);
$info = drupal_parse_info_file("profiles/$profile/$profile.info") + $defaults;