[Rt-commit] rt branch, 4.0/dont-create-db-for-syntax-check, created. rt-4.0.10-28-gf0e57ea

Ruslan Zakirov ruz at bestpractical.com
Mon Feb 11 09:05:12 EST 2013


The branch, 4.0/dont-create-db-for-syntax-check has been created
        at  f0e57eadaac50ebab96cc38bda704f26454c3e34 (commit)

- Log -----------------------------------------------------------------
commit f0e57eadaac50ebab96cc38bda704f26454c3e34
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Mon Feb 11 18:03:55 2013 +0400

    don't create DB if we run perl -c on a test file

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 467905c..d1eb05f 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -111,6 +111,8 @@ sub import {
     my $class = shift;
     my %args = %rttest_opt = @_;
 
+    $rttest_opt{'nodb'} = $args{'nodb'} = 1 if $^C;
+
     # Spit out a plan (if we got one) *before* we load modules
     if ( $args{'tests'} ) {
         plan( tests => $args{'tests'} )

-----------------------------------------------------------------------


More information about the Rt-commit mailing list