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

Changeset 1512

Show
Ignore:
Timestamp:
12/10/06 23:56:48
Author:
fumanchu
Message:

2.x backport of [1266] (Touch-up to test suite help; closes #333 (run test suite on arbitrary port)).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/test/test.py

    r1511 r1512  
    7171                         } 
    7272    default_server = "wsgi" 
     73    port = 8080 
    7374     
    7475    def __init__(self, available_tests, args=sys.argv[1:]): 
     
    8485        self.profile = False 
    8586        self.server = None 
    86         self.port = 8080 
    8787        self.protocol = "HTTP/1.1" 
    8888         
     
    139139        print """CherryPy Test Program 
    140140    Usage: 
    141         test.py --server=* --1.1 --cover --basedir=path --profile --tests** 
    142          
    143     """ 
     141        test.py --server=* --port=%s --1.1 --cover --basedir=path --profile --tests** 
     142         
     143    """ % self.__class__.port 
    144144        print '    * servers:' 
    145145        for name, val in self.available_servers.iteritems(): 
     
    151151        print """ 
    152152     
     153    --port=<int>: use a port other than the default (%s) 
    153154    --1.1: use HTTP/1.1 servers instead of default HTTP/1.0 
    154155     
     
    157158     
    158159    --profile: turn on profiling tool 
    159     """ 
     160    """ % self.__class__.port 
    160161         
    161162        print '    ** tests:' 

Hosted by WebFaction

Log in as guest/cpguest to create tickets