Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1266

Show
Ignore:
Timestamp:
08/22/06 12:19:26
Author:
fumanchu
Message:

Touch-up to test suite help (closes #333 (run test suite on arbitrary port)).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test.py

    r1263 r1266  
    7373                         } 
    7474    default_server = "wsgi" 
     75    port = 8080 
    7576     
    7677    def __init__(self, available_tests, args=sys.argv[1:]): 
     
    8687        self.profile = False 
    8788        self.server = None 
    88         self.port = 8080 
    8989        self.protocol = "HTTP/1.1" 
    9090         
     
    141141        print """CherryPy Test Program 
    142142    Usage: 
    143         test.py --server=* --1.0 --cover --basedir=path --profile --tests** 
    144          
    145     """ 
     143        test.py --server=* --port=%s --1.0 --cover --basedir=path --profile --tests** 
     144         
     145    """ % self.__class__.port 
    146146        print '    * servers:' 
    147147        for name, val in self.available_servers.iteritems(): 
     
    153153        print """ 
    154154     
     155    --port=<int>: use a port other than the default (%s) 
    155156    --1.0: use HTTP/1.0 servers instead of default HTTP/1.1 
    156157     
     
    159160     
    160161    --profile: turn on profiling tool 
    161     """ 
     162    """ % self.__class__.port 
    162163         
    163164        print '    ** tests:' 

Hosted by WebFaction

Log in as guest/cpguest to create tickets