Added timezone and corrected path data

Adding a timezone prevents errors on misconfigured systems when
running, and the path correction automates the running of the dovecot
testing package between tests.
This commit is contained in:
Robert Hafner 2014-02-27 00:11:19 -08:00
parent a2b41cd82c
commit ef5f76d352

View File

@ -14,6 +14,7 @@ error_reporting(-1);
define('TESTING', true); define('TESTING', true);
define('TEST_USER', 'testuser'); define('TEST_USER', 'testuser');
define('TEST_PASSWORD', 'applesauce'); define('TEST_PASSWORD', 'applesauce');
date_default_timezone_set('UTC');
if(getenv('TRAVIS')) if(getenv('TRAVIS'))
{ {
@ -23,7 +24,7 @@ if(getenv('TRAVIS'))
define('TESTING_ENVIRONMENT', 'VAGRANT'); define('TESTING_ENVIRONMENT', 'VAGRANT');
define('TESTING_SERVER_HOST', '172.31.1.2'); define('TESTING_SERVER_HOST', '172.31.1.2');
echo 'Initializing Environment using Vagrant' . PHP_EOL; echo 'Initializing Environment using Vagrant' . PHP_EOL;
passthru('/bin/bash ' . __DIR__ . '/vendor/tedivm/dovecottesting/SetupEnvironment.sh'); passthru('/bin/bash ' . __DIR__ . '/../vendor/tedivm/dovecottesting/SetupEnvironment.sh');
echo 'Environment Initialized' . PHP_EOL . PHP_EOL . PHP_EOL; echo 'Environment Initialized' . PHP_EOL . PHP_EOL . PHP_EOL;
} }