Changeset 113 in tests
- Timestamp:
- 12/04/2007 10:59:39 PM (16 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-test.php
r101 r113 1 1 <?php 2 2 3 $opts = getopt('v:t: ');3 $opts = getopt('v:t:s'); 4 4 5 5 define('DIR_TESTROOT', realpath(dirname(__FILE__))); … … 11 11 define('TEST_WP', true); 12 12 define('TEST_MU', (@$opts['v'] == 'mu')); 13 define('TEST_SKIP_KNOWN_BUGS', array_key_exists('s', $opts)); 13 14 #define('SAVEQUERIES', true); 14 15 -
wp-testlib/base.php
r112 r113 326 326 */ 327 327 function isTracTicketClosed($trac_url, $ticket_id) { 328 #TODO: cache it or provide a way to disable the checks and return false328 #TODO: cache it 329 329 $trac_url = rtrim($trac_url, '/'); 330 330 $ticket_tsv = file_get_contents("$trac_url/ticket/$ticket_id?format=tab"); … … 349 349 */ 350 350 function knownWPBug($ticket_id) { 351 if ( !$this->isTracTicketClosed('http://trac.wordpress.org', $ticket_id)) {351 if (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://trac.wordpress.org', $ticket_id)) { 352 352 $this->markTestSkipped(); 353 353 } … … 358 358 */ 359 359 function knownMUBug($ticket_id) { 360 if ( !$this->isTracTicketClosed('http://trac.mu.wordpress.org', $ticket_id)) {360 if (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://trac.mu.wordpress.org', $ticket_id)) { 361 361 $this->markTestSkipped(); 362 362 } … … 367 367 */ 368 368 function knownPluginBug($ticket_id) { 369 if ( !$this->isTracTicketClosed('http://dev.wp-plugins.org', $ticket_id)) {369 if (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://dev.wp-plugins.org', $ticket_id)) { 370 370 $this->markTestSkipped(); 371 371 }
Note: See TracChangeset
for help on using the changeset viewer.