Skip to content

Commit 68d69e1

Browse files
author
Richard Jones
committed
make setup abort if tests fail
1 parent f28e51e commit 68d69e1

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

setup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,19 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: setup.py,v 1.26 2001-12-08 07:06:20 jhermann Exp $
19+
# $Id: setup.py,v 1.27 2002-01-05 02:09:46 richard Exp $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
2323

2424
from glob import glob
25-
import os
25+
import sys,os
2626
from roundup.templatebuilder import makeHtmlBase
2727

2828
print 'Running unit tests...'
2929
import test
30-
test.go()
30+
if not test.go():
31+
sys.exit(0)
3132

3233

3334
def isTemplateDir(dir):
@@ -63,7 +64,7 @@ def isTemplateDir(dir):
6364

6465
setup(
6566
name = "roundup",
66-
version = "0.3.0",
67+
version = "0.4.0b1",
6768
description = "Roundup issue tracking system.",
6869
author = "Richard Jones",
6970
author_email = "[email protected]",
@@ -76,6 +77,9 @@ def isTemplateDir(dir):
7677

7778
#
7879
# $Log: not supported by cvs2svn $
80+
# Revision 1.26 2001/12/08 07:06:20 jhermann
81+
# Install html template files to share/roundup/templates
82+
#
7983
# Revision 1.25 2001/11/21 23:42:54 richard
8084
# Some version number and documentation fixes.
8185
#

test/__init__.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: __init__.py,v 1.9 2002-01-02 02:31:38 richard Exp $
18+
# $Id: __init__.py,v 1.10 2002-01-05 02:09:46 richard Exp $
1919

2020
import unittest
2121
import os, tempfile
@@ -36,10 +36,26 @@ def go():
3636
test_token.suite(),
3737
))
3838
runner = unittest.TextTestRunner()
39-
runner.run(suite)
39+
result = runner.run(suite)
40+
return result.wasSuccessful()
4041

4142
#
4243
# $Log: not supported by cvs2svn $
44+
# Revision 1.9 2002/01/02 02:31:38 richard
45+
# Sorry for the huge checkin message - I was only intending to implement #496356
46+
# but I found a number of places where things had been broken by transactions:
47+
# . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename
48+
# for _all_ roundup-generated smtp messages to be sent to.
49+
# . the transaction cache had broken the roundupdb.Class set() reactors
50+
# . newly-created author users in the mailgw weren't being committed to the db
51+
#
52+
# Stuff that made it into CHANGES.txt (ie. the stuff I was actually working
53+
# on when I found that stuff :):
54+
# . #496356 ] Use threading in messages
55+
# . detectors were being registered multiple times
56+
# . added tests for mailgw
57+
# . much better attaching of erroneous messages in the mail gateway
58+
#
4359
# Revision 1.8 2001/12/31 05:09:20 richard
4460
# Added better tokenising to roundup-admin - handles spaces and stuff. Can
4561
# use quoting or backslashes. See the roundup.token pydoc.

0 commit comments

Comments
 (0)