WordPress.org

Make WordPress Core

Changeset 171 in tests


Ignore:
Timestamp:
03/17/08 07:36:43 (6 years ago)
Author:
nbachiyski
Message:

Allow forcing the check for known bugs, now you can't check them once they are makred as such

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r141 r171  
    11<?php 
    22 
    3 $opts = getopt('v:t:s'); 
     3$opts = getopt('v:t:sf'); 
    44 
    55define('DIR_TESTROOT', realpath(dirname(__FILE__))); 
     
    1212define('TEST_MU', (@$opts['v'] == 'mu')); 
    1313define('TEST_SKIP_KNOWN_BUGS', array_key_exists('s', $opts)); 
     14define('TEST_FORCE_KNOWN_BUGS', array_key_exists('f', $opts)); 
    1415#define('SAVEQUERIES', true); 
    1516 
     
    2122        define('DIR_WP', DIR_TESTROOT.'/wordpress-'.$opts['v']); 
    2223    else 
    23         define('DIR_WP', DIR_TESTROOT.'/wordpress'); 
     24        define('DIR_WP', DIR_TESTROOT.'/../wordpress/trunk'); 
    2425} 
    2526 
  • wp-testlib/base.php

    r132 r171  
    371371     */ 
    372372    function knownWPBug($ticket_id) { 
    373         if (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://trac.wordpress.org', $ticket_id)) { 
     373        if (!TEST_FORCE_KNOWN_BUGS && (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://trac.wordpress.org', $ticket_id))) { 
    374374            $this->markTestSkipped(); 
    375375        } 
     
    380380     */ 
    381381    function knownMUBug($ticket_id) { 
    382         if (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://trac.mu.wordpress.org', $ticket_id)) { 
     382        if (!TEST_FORCE_KNOWN_BUGS && (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://trac.mu.wordpress.org', $ticket_id))) { 
    383383            $this->markTestSkipped(); 
    384384        } 
     
    389389     */ 
    390390    function knownPluginBug($ticket_id) { 
    391         if (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://dev.wp-plugins.org', $ticket_id)) { 
     391        if (!TEST_FORCE_KNOWN_BUGS && (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://dev.wp-plugins.org', $ticket_id))) { 
    392392            $this->markTestSkipped(); 
    393393        } 
Note: See TracChangeset for help on using the changeset viewer.