sys.exit(1) of error on run_system_tests

This commit is contained in:
Massimo Di Pierro
2012-05-14 14:26:34 -05:00
parent 29a2080772
commit 632a8568bb
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-11 21:56:14) dev
Version 2.00.0 (2012-05-14 14:26:04) dev
+5 -4
View File
@@ -62,15 +62,17 @@ def run_system_tests():
if major_version == 2:
if minor_version in (5, 6):
print "Python 2.5 or 2.6"
os.system("PYTHONPATH=. unit2 -v gluon.tests")
ret = os.system("PYTHONPATH=. unit2 -v gluon.tests")
elif minor_version in (7,):
print "Python 2.7"
os.system("PYTHONPATH=. python -m unittest -v gluon.tests")
ret = os.system("PYTHONPATH=. python -m unittest -v gluon.tests")
else:
print "unknown python 2.x version"
ret = 256
else:
print "Only Python 2.x supported."
ret = 256
sys.exit(ret or 1)
class IO(object):
""" """
@@ -789,7 +791,6 @@ def console():
if options.run_system_tests:
run_system_tests()
sys.exit(0)
if options.quiet:
capture = cStringIO.StringIO()