WordPress.org

Make WordPress Core

Changeset 241 in tests


Ignore:
Timestamp:
09/17/2009 07:50:25 PM (9 years ago)
Author:
westi
Message:

Add a new command line option '-n' which stops the drop_tables() call at the end to allow database to be examined when investigating test failures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r227 r241  
    11<?php
    22
    3 $opts = getopt('v:t:r:sf:l');
     3$opts = getopt('v:t:r:sf:l:n');
    44
    55define('DIR_TESTROOT', realpath(dirname(__FILE__)));
     
    108108    wptest_print_result($printer,$result);
    109109}
    110 // clean up the database
    111 drop_tables();
    112 
     110if ( !isset($opts['n']) ) {
     111    // clean up the database
     112    drop_tables();
     113}
    113114?>
Note: See TracChangeset for help on using the changeset viewer.