[Rt-commit] r8331 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT
ternus at bestpractical.com
ternus at bestpractical.com
Tue Jul 31 15:35:14 EDT 2007
Author: ternus
Date: Tue Jul 31 15:35:11 2007
New Revision: 8331
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm
Log:
Now dies on tests if RT_DBA_USER and RT_DBA_PASSWORD aren't set.
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm Tue Jul 31 15:35:11 2007
@@ -72,9 +72,14 @@
my $self = shift;
my %args = @_;
+ unless ($ENV{'RT_DBA_USER'} && $ENV{'RT_DBA_PASSWORD'}) {
+ die "RT_DBA_USER and RT_DBA_PASSWORD environment variables need to be set in order to run 'make test'";
+ }
# bootstrap with dba cred
my $dbh = _get_dbh(RT::Handle->SystemDSN,
$ENV{RT_DBA_USER}, $ENV{RT_DBA_PASSWORD});
+
+
RT::Handle->DropDatabase( $dbh, Force => 1 );
RT::Handle->CreateDatabase( $dbh );
$dbh->disconnect;
More information about the Rt-commit
mailing list