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

Changeset 1568

Show
Ignore:
Timestamp:
12/28/06 13:27:08
Author:
fumanchu
Message:

The modpy tests were not returning an exit code.

Files:

Legend:

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

    r1389 r1568  
    147147        # must run the setup_server() function for the test. 
    148148        # Then our process can run the actual test. 
     149        success = True 
    149150        for testmod in self.tests: 
    150151            try: 
    151152                start(testmod, self.port, conf_template) 
    152153                suite = webtest.ReloadingTestLoader().loadTestsFromName(testmod) 
    153                 webtest.TerseTestRunner(verbosity=2).run(suite) 
     154                result = webtest.TerseTestRunner(verbosity=2).run(suite) 
     155                success &= result.wasSuccessful() 
    154156            finally: 
    155157                stop() 
     158        if success: 
     159            return 0 
     160        else: 
     161            return 1 
    156162 

Hosted by WebFaction

Log in as guest/cpguest to create tickets