[Rt-commit] [rtir] 01/01: Explicitly DropDatabase in loading snapshots

Shawn Moore shawn at bestpractical.com
Thu May 12 19:33:49 EDT 2016


This is an automated email from the git hooks/post-receive script.

shawn pushed a commit to branch 3.4/upgrade-test-failures
in repository rtir.

commit c6c22d4df5510922eb9515175f7787b2e066d1be
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Thu May 12 23:32:35 2016 +0000

    Explicitly DropDatabase in loading snapshots
    
        This is necessary because RT::Test doesn't drop the database before
        creation under parallel test, reasoning that the database doesn't
        exist yet. But in this case we explicitly do want the database dropped
        no matter what the test environment is.
---
 lib/RT/IR/Test.pm.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RT/IR/Test.pm.in b/lib/RT/IR/Test.pm.in
index 037f6ff..8eecb4e 100644
--- a/lib/RT/IR/Test.pm.in
+++ b/lib/RT/IR/Test.pm.in
@@ -126,7 +126,7 @@ sub import_snapshot {
         # drop the old database (which has a modern schema bringing new
         # tables and such), then create a fresh one *with no schema*,
         # which will be populated by the snapshot in the next step
-        RT::Test::__create_database();
+        RT::Test::__create_database(DropDatabase => 1);
 
         Test::More::diag("About to run `". join(' ', $cmd, @args) ."`");
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list