From 1d4ed96a04df28e87b81fa56e7a89a5b8a7ef0ac Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Tue, 3 Nov 2009 11:28:34 -0500 Subject: [PATCH] Fix new functional tests script return code (for buildbot) --- scripts/functional_tests.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/functional_tests.py b/scripts/functional_tests.py index 51863432419..60e5e2c60f0 100644 --- a/scripts/functional_tests.py +++ b/scripts/functional_tests.py @@ -155,7 +155,7 @@ def main(): log.info( "Functional tests will be run against %s:%s" % ( galaxy_test_host, galaxy_test_port ) ) - rval = False + success = False try: @@ -186,7 +186,7 @@ def main(): result = test_runner.run( tests ) - rval = result.wasSuccessful() + success = result.wasSuccessful() except: log.exception( "Failure running tests" ) @@ -206,7 +206,10 @@ def main(): app = None log.info( "Embedded Universe application stopped" ) - return rval + if success: + return 0 + else: + return 1 if __name__ == "__main__": - main() + sys.exit( main() )