Make WordPress Core

Changeset 113 in tests


Ignore:
Timestamp:
12/04/2007 10:59:39 PM (16 years ago)
Author:
tellyworth
Message:

add -s cli option for skipping known bugs

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r101 r113  
    11<?php
    22
    3 $opts = getopt('v:t:');
     3$opts = getopt('v:t:s');
    44
    55define('DIR_TESTROOT', realpath(dirname(__FILE__)));
     
    1111define('TEST_WP', true);
    1212define('TEST_MU', (@$opts['v'] == 'mu'));
     13define('TEST_SKIP_KNOWN_BUGS', array_key_exists('s', $opts));
    1314#define('SAVEQUERIES', true);
    1415
  • wp-testlib/base.php

    r112 r113  
    326326     */
    327327    function isTracTicketClosed($trac_url, $ticket_id) {
    328         #TODO: cache it or provide a way to disable the checks and return false
     328        #TODO: cache it
    329329        $trac_url = rtrim($trac_url, '/');
    330330        $ticket_tsv = file_get_contents("$trac_url/ticket/$ticket_id?format=tab");
     
    349349     */
    350350    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)) {
    352352            $this->markTestSkipped();
    353353        }
     
    358358     */
    359359    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)) {
    361361            $this->markTestSkipped();
    362362        }
     
    367367     */
    368368    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)) {
    370370            $this->markTestSkipped();
    371371        }
Note: See TracChangeset for help on using the changeset viewer.