Provide a mechanism for leaving prefix tables

moshe weitzman - September 25, 2009 - 17:16
Project:SimpleTest
Version:7.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:boombatower
Status:closed
Description

I am seeing table cleanup even when thats not requested as per admin/build/testing/settings. can anyone else get the tables to stick around?

#1

boombatower - September 25, 2009 - 20:05
Title:Always clears tables» Provide a mechanism for leaving prefix tables
Category:bug report» feature request
Status:active» postponed (maintainer needs more info)

We had this discussion in core. The variable is not intended to leave the simpletest3948... tables...it leaves the "results" as in those in the simpletest table. The idea being that modules like PIFR or other integrations may want to do further analysis or work with the data.

If we want to provide another variable to leave tables...or change the meaning of this one that is a possibility, but not the purpose of the variable.

Personally I never have a need to look at the tables...at least not something that can't be figured out with debug() or verbose and dumbing things out. If you need to though: inside DrupalWebTestCase::tearDown() comment out line 1256

<?php
db_drop_table
($ret, $name);
?>

and the tables will be there for you to inspect.

#2

boombatower - November 6, 2009 - 21:52
Version:6.x-2.x-dev» 7.x-2.x-dev
Status:postponed (maintainer needs more info)» active

Lets add this, why not right?

#3

boombatower - November 9, 2009 - 20:56
Assigned to:Anonymous» boombatower
Status:active» needs review
AttachmentSize
588084-leave-prefixed.patch 2.95 KB

#4

boombatower - November 9, 2009 - 20:56
Status:needs review» fixed

Committed.

#5

System Message - November 23, 2009 - 21:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.