From: richard Date: Sat, 5 Jan 2002 02:09:46 +0000 (+0000) Subject: make setup abort if tests fail X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a92c955422efeb11c52f1afe0faf99538ab45291;p=roundup.git make setup abort if tests fail git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@495 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/setup.py b/setup.py index a35708c..2be7e91 100644 --- a/setup.py +++ b/setup.py @@ -16,18 +16,19 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: setup.py,v 1.26 2001-12-08 07:06:20 jhermann Exp $ +# $Id: setup.py,v 1.27 2002-01-05 02:09:46 richard Exp $ from distutils.core import setup, Extension from distutils.util import get_platform from glob import glob -import os +import sys,os from roundup.templatebuilder import makeHtmlBase print 'Running unit tests...' import test -test.go() +if not test.go(): + sys.exit(0) def isTemplateDir(dir): @@ -63,7 +64,7 @@ for template in templates: setup( name = "roundup", - version = "0.3.0", + version = "0.4.0b1", description = "Roundup issue tracking system.", author = "Richard Jones", author_email = "richard@users.sourceforge.net", @@ -76,6 +77,9 @@ setup( # # $Log: not supported by cvs2svn $ +# Revision 1.26 2001/12/08 07:06:20 jhermann +# Install html template files to share/roundup/templates +# # Revision 1.25 2001/11/21 23:42:54 richard # Some version number and documentation fixes. # diff --git a/test/__init__.py b/test/__init__.py index 5d821a2..90d935b 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: __init__.py,v 1.9 2002-01-02 02:31:38 richard Exp $ +# $Id: __init__.py,v 1.10 2002-01-05 02:09:46 richard Exp $ import unittest import os, tempfile @@ -36,10 +36,26 @@ def go(): test_token.suite(), )) runner = unittest.TextTestRunner() - runner.run(suite) + result = runner.run(suite) + return result.wasSuccessful() # # $Log: not supported by cvs2svn $ +# Revision 1.9 2002/01/02 02:31:38 richard +# Sorry for the huge checkin message - I was only intending to implement #496356 +# but I found a number of places where things had been broken by transactions: +# . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename +# for _all_ roundup-generated smtp messages to be sent to. +# . the transaction cache had broken the roundupdb.Class set() reactors +# . newly-created author users in the mailgw weren't being committed to the db +# +# Stuff that made it into CHANGES.txt (ie. the stuff I was actually working +# on when I found that stuff :): +# . #496356 ] Use threading in messages +# . detectors were being registered multiple times +# . added tests for mailgw +# . much better attaching of erroneous messages in the mail gateway +# # Revision 1.8 2001/12/31 05:09:20 richard # Added better tokenising to roundup-admin - handles spaces and stuff. Can # use quoting or backslashes. See the roundup.token pydoc.