[Rt-commit] r15478 - rt/3.8/trunk/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Tue Aug 26 08:00:09 EDT 2008
Author: ruz
Date: Tue Aug 26 08:00:07 2008
New Revision: 15478
Modified:
rt/3.8/trunk/lib/RT/Test.pm
Log:
* RT_TEST_DB_SID is a hackish way to define oracle SID to test on Oracle,
on Oracle user name defines DB(schema)
* generate unique name for rt user
Modified: rt/3.8/trunk/lib/RT/Test.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Test.pm (original)
+++ rt/3.8/trunk/lib/RT/Test.pm Tue Aug 26 08:00:07 2008
@@ -132,11 +132,17 @@
print $config qq{
Set( \$WebPort , $port);
Set( \$WebBaseURL , "http://localhost:\$WebPort");
-Set( \$DatabaseName , $dbname);
Set( \$LogToSyslog , undef);
Set( \$LogToScreen , "warning");
Set( \$MailCommand, 'testfile');
};
+ if ( $ENV{'RT_TEST_DB_SID'} ) { # oracle case
+ print $config "Set( \$DatabaseName , '$ENV{'RT_TEST_DB_SID'}' );\n";
+ print $config "Set( \$DatabaseUser , '$dbname');\n";
+ } else {
+ print $config "Set( \$DatabaseName , '$dbname');\n";
+ print $config "Set( \$DatabaseUser , '${dbname}_user');\n";
+ }
print $config $args{'config'} if $args{'config'};
print $config "\n1;\n";
$ENV{'RT_SITE_CONFIG'} = $config->filename;
More information about the Rt-commit
mailing list