Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support database passwords in db_spec for postgres databases #695

Merged
merged 1 commit into from
Jun 26, 2014

Conversation

greg-1-anderson
Copy link
Member

If 'password' is set in a pgsql db_spec, then write a pgpass file, and point to it with the PGPASSFILE environment variable.

This should work for things like sql-cli and site-install. More work necessary for sql-dump and sql-sync.

…d point to it with the PGPASSFILE environment variable.
@ricardoamaro
Copy link

I have successfuly ran this patch against a Drupal7 CLI site-install with the Docker testbot:

root@95fd85c5b342:/# /start.sh 
+ source /var/www/test.info
++ IDENTIFIER=build_2014_06_26_224031
++ DRUPALBRANCH=7.26
++ DRUPALVERSION=7
++ UPDATEREPO=false
++ REPODIR=/home/ricardo/testbotdata
++ DRUPALREPO=http://git.drupal.org/project/drupal.git
++ DRUSHREPO=https://github.com/drush-ops/drush.git
++ BUILDSDIR=/home/ricardo/testbotdata
++ WORKSPACE=/home/ricardo/testbotdata/build_2014_06_26_224031/
++ DEPENDENCIES=
++ DEPENDENCIES_GIT=
++ DEPENDENCIES_TGZ=
++ MODULESPATH=./sites/all/modules
++ PATCH=
++ DBUSER=drupaltestbot
++ DBPASS=drupaltestbotpw
++ DBTYPE=pgsql
++ DBCONTAINER=drupaltestbot-db-pgsql
++ DBLINK=--link=drupaltestbot-db-pgsql:db
++ CMD=/bin/bash
++ VERBOSE=false
++ PHPVERSION=5.4
++ CONCURRENCY=32
++ RUNSCRIPT='php ./scripts/run-tests.sh --php /usr/bin/php --url '\''http://localhost'\'' --color --concurrency 32  --xml '\''/var/workspace/results'\'''
++ TESTGROUPS=Bootstrap
+ export PATH=//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export DRUSH=/.composer/vendor/drush/drush/drush
+ DRUSH=/.composer/vendor/drush/drush/drush
+ export
declare -x DB_ENV_DEBIAN_FRONTEND="noninteractive"
declare -x DB_ENV_LANG="en_US.UTF-8"
declare -x DB_ENV_LANGUAGE="en_US.UTF-8"
declare -x DB_ENV_LC_ALL="en_US.UTF-8"
declare -x DB_NAME="/build_2014_06_26_224031/db"
declare -x DB_PORT="tcp://172.17.0.102:5432"
declare -x DB_PORT_5432_TCP="tcp://172.17.0.102:5432"
declare -x DB_PORT_5432_TCP_ADDR="172.17.0.102"
declare -x DB_PORT_5432_TCP_PORT="5432"
declare -x DB_PORT_5432_TCP_PROTO="tcp"
declare -x DRUSH="/.composer/vendor/drush/drush/drush"
declare -x HOME="/"
declare -x HOSTNAME="95fd85c5b342"
declare -x OLDPWD
declare -x PATH="//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
declare -x PWD="/"
declare -x SHLVL="2"
declare -x TERM="xterm"
+ echo 'Operation [start]...'
Operation [start]...
+ SERVICE=apache2
+ ps ax
+ grep apache2
+ grep -v grep
+ echo 'Starting apache2 service'
Starting apache2 service
+ apachectl start
+ cd /var/www/
+ echo ''

+ ((  7 >= 8  ))
+ echo 'Operation 7 [install]... '
Operation 7 [install]... 
+ case $DBTYPE in
+ /.composer/vendor/drush/drush/drush si -vd -y --db-url=pgsql://drupaltestbot:drupaltestbotpw@172.17.0.102/build_2014_06_26_224031 --clean-url=0 --strict=0 --account-name=admin --account-pass=drupal --account-mail=admin@example.com
Bootstrap to phase 0. [0 sec, 1.88 MB]                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0 sec, 1.89 MB]    [bootstrap]
Cache MISS cid: 7.0-dev-commandfiles-0-7c3538320ee94c32854c70c64dc02899 [0.01 sec, 1.94 MB]                                   [debug]
Cache SET cid: 7.0-dev-commandfiles-0-7c3538320ee94c32854c70c64dc02899 [0.01 sec, 1.96 MB]                                    [debug]
Bootstrap to phase 0. [0.04 sec, 5.42 MB]                                                                                 [bootstrap]
Bootstrap to phase 1. [0.06 sec, 5.43 MB]                                                                                 [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.06 sec, 5.43 MB]                                                [bootstrap]
Initialized Drupal 7.26 root directory at /var/www [0.07 sec, 6.29 MB]                                                       [notice]
Found command: site-install (commandfile=site_install) [0.07 sec, 6.29 MB]                                                [bootstrap]
Calling hook drush_core_site_install_validate [0.11 sec, 6.32 MB]                                                             [debug]
Returned from hook drush_core_site_install_validate [0.11 sec, 6.33 MB]                                                       [debug]
Calling hook drush_core_pre_site_install [0.11 sec, 6.33 MB]                                                                  [debug]
Cache MISS cid: 7.0-dev-alias-path--8bf32223596c4e7624f626b4fa56d306 [0.12 sec, 6.44 MB]                                      [debug]
Executing: PGPASSFILE=/tmp/drush_kmfxBn psql -q --dbname=template1 --host=172.17.0.102 --port=5432 --username=drupaltestbot --no-align --field-separator='  ' --pset footer=off -t -c 'SELECT 1 AS result FROM pg_database WHERE datname='\''build_2014_06_26_224031'\'''
Undefined offset: 0 Sqlpgsql.php:73 [0.2 sec, 6.45 MB]                                                                       [notice]
You are about to create a /var/www/sites/default/settings.php file and CREATE the 'build_2014_06_26_224031' database. Do you want to continue? (y/n): y
Sites directory /var/www/sites/default already exists - proceeding. [0.2 sec, 6.45 MB]                                       [notice]
Calling copy(sites/default/default.settings.php, /var/www/sites/default/settings.php) [0.2 sec, 6.45 MB]                      [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.2 sec, 6.45 MB]                                                 [bootstrap]
Initialized Drupal site default at sites/default [0.2 sec, 6.46 MB]                                                          [notice]
Cache MISS cid: 7.0-dev-install_profile-66ecfeb9791a023150773849f1550c5d [0.2 sec, 6.46 MB]                                   [debug]
Cache MISS cid: 7.0-dev-commandfiles-2-d49b2b23fa795040f8c524a616765199 [0.2 sec, 6.46 MB]                                    [debug]
Cache SET cid: 7.0-dev-commandfiles-2-d49b2b23fa795040f8c524a616765199 [0.2 sec, 6.46 MB]                                     [debug]
Executing: PGPASSFILE=/tmp/drush_ujKr5t psql -q --dbname=template1 --host=172.17.0.102 --port=5432 --username=drupaltestbot --no-align --field-separator='  ' --pset footer=off -t -c 'SELECT 1 AS result FROM pg_database WHERE datname='\''build_2014_06_26_224031'\'''
Undefined offset: 0 Sqlpgsql.php:73 [0.25 sec, 6.46 MB]                                                                      [notice]
sql-query: drop database if exists build_2014_06_26_224031; create database build_2014_06_26_224031 ENCODING 'UTF8'; [0.26[status]
sec, 6.46 MB]
Executing: PGPASSFILE=/tmp/drush_GnabrH psql -q --dbname=template1 --host=172.17.0.102 --port=5432 --username=drupaltestbot  --no-align --field-separator=' ' --pset footer=off --file /tmp/drush_aCwhLA
  psql:/tmp/drush_aCwhLA:1: NOTICE:  database "build_2014_06_26_224031" does not exist, skipping
Returned from hook drush_core_pre_site_install [0.51 sec, 6.46 MB]                                                            [debug]
Calling hook drush_core_site_install [0.51 sec, 6.47 MB]                                                                      [debug]
Starting Drupal installation. This takes a few seconds ... [0.52 sec, 6.75 MB]                                            [ok]
Calling install_drupal(Array) [0.52 sec, 6.75 MB]                                                                             [debug]
WD system: user module installed. [1.17 sec, 13.83 MB]                                                                         [info]
WD system: user module enabled. [1.17 sec, 13.83 MB]                                                                           [info]
WD system: filter module installed. [1.3 sec, 15.12 MB]                                                                        [info]
WD system: filter module enabled. [1.3 sec, 15.12 MB]                                                                          [info]
WD system: node module installed. [1.43 sec, 15.77 MB]                                                                         [info]
WD system: node module enabled. [1.43 sec, 15.77 MB]                                                                           [info]
WD system: field_sql_storage module installed. [1.48 sec, 15.91 MB]                                                            [info]
WD system: field_sql_storage module enabled. [1.48 sec, 15.91 MB]                                                              [info]
WD system: field module installed. [1.57 sec, 16.54 MB]                                                                        [info]
WD system: field module enabled. [1.57 sec, 16.54 MB]                                                                          [info]
WD system: text module installed. [1.63 sec, 16.63 MB]                                                                         [info]
WD system: text module enabled. [1.63 sec, 16.63 MB]                                                                           [info]
WD system: block module installed. [1.71 sec, 16.82 MB]                                                                        [info]
WD system: block module enabled. [1.71 sec, 16.82 MB]                                                                          [info]
WD system: color module installed. [1.77 sec, 16.96 MB]                                                                        [info]
WD system: color module enabled. [1.77 sec, 16.96 MB]                                                                          [info]
WD system: comment module installed. [1.86 sec, 17.43 MB]                                                                      [info]
WD system: comment module enabled. [1.86 sec, 17.44 MB]                                                                        [info]
WD system: contextual module installed. [1.92 sec, 17.47 MB]                                                                   [info]
WD system: contextual module enabled. [1.92 sec, 17.47 MB]                                                                     [info]
WD system: dashboard module installed. [1.97 sec, 17.57 MB]                                                                    [info]
WD system: dashboard module enabled. [1.97 sec, 17.57 MB]                                                                      [info]
WD system: dblog module installed. [2.04 sec, 17.62 MB]                                                                        [info]
WD system: dblog module enabled. [2.04 sec, 17.62 MB]                                                                          [info]
WD system: field_ui module installed. [2.11 sec, 17.69 MB]                                                                     [info]
WD system: field_ui module enabled. [2.11 sec, 17.69 MB]                                                                       [info]
WD system: file module installed. [2.18 sec, 17.99 MB]                                                                         [info]
WD system: file module enabled. [2.18 sec, 17.99 MB]                                                                           [info]
WD system: options module installed. [2.24 sec, 18.05 MB]                                                                      [info]
WD system: options module enabled. [2.24 sec, 18.05 MB]                                                                        [info]
WD system: taxonomy module installed. [2.34 sec, 18.39 MB]                                                                     [info]
WD system: taxonomy module enabled. [2.34 sec, 18.39 MB]                                                                       [info]
WD system: help module installed. [2.4 sec, 18.41 MB]                                                                          [info]
WD system: help module enabled. [2.4 sec, 18.41 MB]                                                                            [info]
WD system: image module installed. [2.49 sec, 18.72 MB]                                                                        [info]
WD system: image module enabled. [2.49 sec, 18.72 MB]                                                                          [info]
WD system: list module installed. [2.56 sec, 18.8 MB]                                                                          [info]
WD system: list module enabled. [2.56 sec, 18.8 MB]                                                                            [info]
WD system: menu module installed. [2.64 sec, 18.94 MB]                                                                         [info]
WD system: menu module enabled. [3.54 sec, 20.35 MB]                                                                           [info]
WD system: number module installed. [3.61 sec, 20.43 MB]                                                                       [info]
WD system: number module enabled. [3.61 sec, 20.43 MB]                                                                         [info]
WD system: overlay module installed. [3.67 sec, 20.54 MB]                                                                      [info]
WD system: overlay module enabled. [3.67 sec, 20.54 MB]                                                                        [info]
WD system: path module installed. [3.74 sec, 20.6 MB]                                                                          [info]
WD system: path module enabled. [3.74 sec, 20.6 MB]                                                                            [info]
WD system: rdf module installed. [3.82 sec, 20.71 MB]                                                                          [info]
WD system: rdf module enabled. [3.82 sec, 20.72 MB]                                                                            [info]
WD system: search module installed. [3.92 sec, 20.91 MB]                                                                       [info]
WD system: search module enabled. [3.92 sec, 20.91 MB]                                                                         [info]
WD system: shortcut module installed. [4.36 sec, 21.28 MB]                                                                     [info]
WD system: shortcut module enabled. [4.36 sec, 21.28 MB]                                                                       [info]
WD system: toolbar module installed. [4.43 sec, 21.31 MB]                                                                      [info]
WD system: toolbar module enabled. [4.43 sec, 21.31 MB]                                                                        [info]
WD system: standard module installed. [5.2 sec, 23.49 MB]                                                                      [info]
WD system: standard module enabled. [5.2 sec, 23.49 MB]                                                                        [info]
WD actions: Action 'Publish comment' added. [5.55 sec, 23.03 MB]                                                             [notice]
WD actions: Action 'Unpublish comment' added. [5.55 sec, 23.03 MB]                                                           [notice]
WD actions: Action 'Save comment' added. [5.55 sec, 23.03 MB]                                                                [notice]
WD actions: Action 'Publish content' added. [5.55 sec, 23.03 MB]                                                             [notice]
WD actions: Action 'Unpublish content' added. [5.55 sec, 23.03 MB]                                                           [notice]
WD actions: Action 'Make content sticky' added. [5.56 sec, 23.03 MB]                                                         [notice]
WD actions: Action 'Make content unsticky' added. [5.56 sec, 23.04 MB]                                                       [notice]
WD actions: Action 'Promote content to front page' added. [5.56 sec, 23.04 MB]                                               [notice]
WD actions: Action 'Remove content from front page' added. [5.56 sec, 23.04 MB]                                              [notice]
WD actions: Action 'Save content' added. [5.56 sec, 23.04 MB]                                                                [notice]
WD actions: Action 'Ban IP address of current user' added. [5.56 sec, 23.04 MB]                                              [notice]
WD actions: Action 'Block current user' added. [5.57 sec, 23.04 MB]                                                          [notice]
WD system: update module installed. [6.05 sec, 24.55 MB]                                                                       [info]
WD system: update module enabled. [6.06 sec, 24.55 MB]                                                                         [info]
WD user: Session opened for admin. [6.1 sec, 24.67 MB]                                                                       [notice]
WD cron: Cron run completed. [6.85 sec, 24.5 MB]                                                                             [notice]
Installation complete.  User name: admin  User password: drupal [6.85 sec, 24.49 MB]                                      [ok]
Returned from hook drush_core_site_install [6.85 sec, 24.49 MB]                                                               [debug]
Command dispatch complete [6.85 sec, 24.45 MB]                                                                               [notice]
 Timer                Cum (sec)  Count  Avg (msec) 
 page                 6.331      1      6331.17    
 drupal_http_request  0.193      1      193.11
Peak memory usage was 26.85 MB [6.85 sec, 24.57 MB]                                                                          [memory]
+ /.composer/vendor/drush/drush/drush -y en simpletest
The following extensions will be enabled: simpletest
Do you really want to continue? (y/n): y
simpletest was enabled successfully.                                                                                      [ok]
simpletest defines the following permissions: administer unit tests
+ EXTRA=
+ mkdir -p /var/www/sites/default/files/ /var/www/sites/simpletest
+ chown -fR www-data /var/www/sites/default/files/ /var/www/sites/simpletest
+ echo ''

+ echo 'Operation [run tests]...'
Operation [run tests]...
+ echo 'export TERM=linux && cd /var/www && php ./scripts/run-tests.sh --php /usr/bin/php --url '\''http://localhost'\'' --color --concurrency 32  --xml '\''/var/workspace/results'\''  Bootstrap | tee /var/www/test.stdout'
export TERM=linux && cd /var/www && php ./scripts/run-tests.sh --php /usr/bin/php --url 'http://localhost' --color --concurrency 32  --xml '/var/workspace/results'  Bootstrap | tee /var/www/test.stdout
+ sudo -E -u www-data -H sh -c 'export TERM=linux && cd /var/www && php ./scripts/run-tests.sh --php /usr/bin/php --url '\''http://localhost'\'' --color --concurrency 32  --xml '\''/var/workspace/results'\''  Bootstrap | tee /var/www/test.stdout'

Drupal test run
---------------

Tests to be run:
 - Get filename test (BootstrapGetFilenameTestCase)
 - IP address and HTTP_HOST test (BootstrapIPAddressTestCase)
 - Miscellaneous bootstrap unit tests (BootstrapMiscTestCase)
 - Overriding server variables (BootstrapOverrideServerVariablesTestCase)
 - Page cache test (BootstrapPageCacheTestCase)
 - Resettable static variables test (BootstrapResettableStaticTestCase)
 - Timer test (BootstrapTimerTestCase)
 - Variable test (BootstrapVariableTestCase)
 - Boot and exit hook invocation (HookBootExitTestCase)

Test run started:
 Thursday, June 26, 2014 - 21:42

Test summary
------------

Get filename test 5 passes, 0 fails, and 0 exceptions
Overriding server variables 6 passes, 0 fails, and 0 exceptions
Miscellaneous bootstrap unit tests 5 passes, 0 fails, and 0 exceptions
Resettable static variables test 5 passes, 0 fails, and 0 exceptions
Timer test 5 passes, 0 fails, and 0 exceptions
IP address and HTTP_HOST test 11 passes, 0 fails, and 0 exceptions
Boot and exit hook invocation 19 passes, 0 fails, 0 exceptions, and 4 debug messages
Variable test 9 passes, 0 fails, 0 exceptions, and 1 debug message
Page cache test 82 passes, 0 fails, 0 exceptions, and 21 debug messages

Test run duration: 22 sec

Will test Drupal8 next

@ricardoamaro
Copy link

With this patch Drupal8 site-install and test also works with the testbot:

+ echo 'Operation 8 [install]... '
Operation 8 [install]... 
+ case $DBTYPE in
+ /.composer/vendor/drush/drush/drush si -vd -y --db-url=pgsql://drupaltestbot:drupaltestbotpw@172.17.0.102/build_2014_06_26_225900 --clean-url=0 --strict=0 --account-name=admin --account-pass=drupal --account-mail=admin@example.com
Bootstrap to phase 0. [0 sec, 1.88 MB]                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0 sec, 1.89 MB]    [bootstrap]
Cache MISS cid: 7.0-dev-commandfiles-0-7c3538320ee94c32854c70c64dc02899 [0.01 sec, 1.94 MB]                                   [debug]
Cache SET cid: 7.0-dev-commandfiles-0-7c3538320ee94c32854c70c64dc02899 [0.01 sec, 1.96 MB]                                    [debug]
Bootstrap to phase 0. [0.04 sec, 5.42 MB]                                                                                 [bootstrap]
Bootstrap to phase 1. [0.06 sec, 5.43 MB]                                                                                 [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.06 sec, 5.43 MB]                                                [bootstrap]
Initialized Drupal 8.0-dev root directory at /var/www [0.07 sec, 5.87 MB]                                                    [notice]
Found command: site-install (commandfile=site_install) [0.07 sec, 5.87 MB]                                                [bootstrap]
Calling hook drush_core_site_install_validate [0.12 sec, 5.91 MB]                                                             [debug]
Returned from hook drush_core_site_install_validate [0.12 sec, 5.91 MB]                                                       [debug]
Calling hook drush_core_pre_site_install [0.12 sec, 5.91 MB]                                                                  [debug]
Cache MISS cid: 7.0-dev-alias-path--8bf32223596c4e7624f626b4fa56d306 [0.12 sec, 6.02 MB]                                      [debug]
Executing: PGPASSFILE=/tmp/drush_zSw4t6 psql -q --dbname=template1 --host=172.17.0.102 --port=5432 --username=drupaltestbot --no-align --field-separator='  ' --pset footer=off -t -c 'SELECT 1 AS result FROM pg_database WHERE datname='\''build_2014_06_26_225900'\'''
Undefined offset: 0 Sqlpgsql.php:73 [0.17 sec, 6.03 MB]                                                                      [notice]
You are about to create a /var/www/sites/default/settings.php file and empty any Config directories and CREATE the 'build_2014_06_26_225900' database. Do you want to continue? (y/n): y
Sites directory /var/www/sites/default already exists - proceeding. [0.17 sec, 6.03 MB]                                      [notice]
Calling copy(sites/default/default.settings.php, /var/www/sites/default/settings.php) [0.17 sec, 6.03 MB]                     [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.18 sec, 6.73 MB]                                                [bootstrap]
Initialized Drupal site default at sites/default [0.18 sec, 6.74 MB]                                                         [notice]
Cache MISS cid: 7.0-dev-install_profile-66ecfeb9791a023150773849f1550c5d [0.18 sec, 6.74 MB]                                  [debug]
Cache MISS cid: 7.0-dev-commandfiles-2-027a7d06ad1248d56c7499a21fb8d2df [0.18 sec, 6.74 MB]                                   [debug]
Cache SET cid: 7.0-dev-commandfiles-2-027a7d06ad1248d56c7499a21fb8d2df [0.18 sec, 6.74 MB]                                    [debug]
Executing: PGPASSFILE=/tmp/drush_mdpHmw psql -q --dbname=template1 --host=172.17.0.102 --port=5432 --username=drupaltestbot --no-align --field-separator='  ' --pset footer=off -t -c 'SELECT 1 AS result FROM pg_database WHERE datname='\''build_2014_06_26_225900'\'''
Undefined offset: 0 Sqlpgsql.php:73 [0.23 sec, 6.82 MB]                                                                      [notice]
sql-query: drop database if exists build_2014_06_26_225900; create database build_2014_06_26_225900 ENCODING 'UTF8'; [0.23[status]
sec, 6.82 MB]
Executing: PGPASSFILE=/tmp/drush_gDyEvm psql -q --dbname=template1 --host=172.17.0.102 --port=5432 --username=drupaltestbot  --no-align --field-separator=' ' --pset footer=off --file /tmp/drush_v008qW
  psql:/tmp/drush_v008qW:1: NOTICE:  database "build_2014_06_26_225900" does not exist, skipping
Returned from hook drush_core_pre_site_install [0.39 sec, 6.81 MB]                                                            [debug]
Calling hook drush_core_site_install [0.39 sec, 6.82 MB]                                                                      [debug]
Starting Drupal installation. This takes a few seconds ... [0.4 sec, 7.11 MB]                                             [ok]
Calling install_drupal(Array) [0.4 sec, 7.11 MB]                                                                              [debug]
SQLSTATE[22003]: Numeric value out of range: 7 ERROR:  setval: value 0 is out of bounds for sequence "shortcut_id_seq"    [error]
(1..9223372036854775807) [14.93 sec, 57.95 MB]
Command dispatch complete [14.94 sec, 57.83 MB]                                                                              [notice]
Peak memory usage was 61.56 MB [14.94 sec, 57.83 MB]                                                                         [memory]
+ /.composer/vendor/drush/drush/drush -y en simpletest
The following extensions will be enabled: simpletest
Do you really want to continue? (y/n): y
simpletest was enabled successfully.                                                                                      [ok]
simpletest defines the following permissions: administer unit tests
+ EXTRA=
+ mkdir -p /var/www/sites/default/files/ /var/www/sites/simpletest
+ chown -fR www-data /var/www/sites/default/files/ /var/www/sites/simpletest
+ echo ''

+ echo 'Operation [run tests]...'
Operation [run tests]...
+ echo 'export TERM=linux && cd /var/www && php ./core/scripts/run-tests.sh --php /usr/bin/php --url '\''http://localhost'\'' --color --concurrency 32  --xml '\''/var/workspace/results'\''  Bootstrap | tee /var/www/test.stdout'
export TERM=linux && cd /var/www && php ./core/scripts/run-tests.sh --php /usr/bin/php --url 'http://localhost' --color --concurrency 32  --xml '/var/workspace/results'  Bootstrap | tee /var/www/test.stdout
+ sudo -E -u www-data -H sh -c 'export TERM=linux && cd /var/www && php ./core/scripts/run-tests.sh --php /usr/bin/php --url '\''http://localhost'\'' --color --concurrency 32  --xml '\''/var/workspace/results'\''  Bootstrap | tee /var/www/test.stdout'

Drupal test run
---------------

Tests to be run:
  - Drupal\system\Tests\Bootstrap\GetFilenameUnitTest
  - Drupal\system\Tests\Bootstrap\PageCacheTest
  - Drupal\system\Tests\Bootstrap\ResettableStaticUnitTest

Test run started:
  Thursday, June 26, 2014 - 22:01

Test summary
------------

Drupal\system\Tests\Bootstrap\ResettableStaticUnitTest         5 passes                                      
Drupal\system\Tests\Bootstrap\GetFilenameUnitTest              6 passes                                      
Drupal\system\Tests\Bootstrap\PageCacheTest                  115 passes                                      

Test run duration: 27 sec

@ricardoamaro
Copy link

@weitzman @greg-1-anderson feel free to proceed with the pull when possible, please
And thanks a lot for the help!

greg-1-anderson added a commit that referenced this pull request Jun 26, 2014
Support database passwords in db_spec for postgres databases
@greg-1-anderson greg-1-anderson merged commit 5534685 into drush-ops:master Jun 26, 2014
@greg-1-anderson
Copy link
Member Author

Merged to master. It would probably be innocuous to add to the 6.x branch as well, if desired, as behavior does not change unless you define a 'password' item in your db spec for postgres.

@ricardoamaro
Copy link

@greg-1-anderson have a look: http://testbot.drupal-pt.org/ Drupal8 Testbot for PostgreSQL
Running every 6 hours

@greg-1-anderson
Copy link
Member Author

I haz a happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants