WordPress.org

Make WordPress Core

Changeset 354 in tests


Ignore:
Timestamp:
05/18/2011 10:38:56 AM (7 years ago)
Author:
westi
Message:

Add commandline options to enable WP_DEBUG and SAVEQUERIES conditionally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r340 r354  
    1212
    1313// parse options
    14 $options = 'v:t:r:sfln';
     14$options = 'v:t:r:sflndq';
    1515if (is_callable('getopt')) {
    1616    $opts = getopt($options);
     
    3030define('TEST_SKIP_KNOWN_BUGS', array_key_exists('s', $opts));
    3131define('TEST_FORCE_KNOWN_BUGS', array_key_exists('f', $opts));
    32 #define('SAVEQUERIES', true);
     32define('WP_DEBUG', array_key_exists('d', $opts) );
     33define('SAVEQUERIES', array_key_exists('q', $opts) );
    3334
    3435if (!empty($opts['r']))
Note: See TracChangeset for help on using the changeset viewer.