Author: bugman Date: Wed Mar 14 03:45:52 2007 New Revision: 3178 URL: http://svn.gna.org/viewcvs/relax?rev=3178&view=rev Log: Fixed the test suite synopsis (the system/functional tests weren't returning the test result). All the contents of the System_tests.__init__() method has been placed into the run() method as __init__() needs to return None. This run() method then returns the global_pass flag to the Test_suite_runner class or test_suite/runner.py. Modified: 1.3/test_suite/runner.py 1.3/test_suite/system_tests/main.py Modified: 1.3/test_suite/runner.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/runner.py?rev=3178&r1=3177&r2=3178&view=diff ============================================================================== --- 1.3/test_suite/runner.py (original) +++ 1.3/test_suite/runner.py Wed Mar 14 03:45:52 2007 @@ -46,11 +46,12 @@ self.relax = relax # Execute the system/functional tests. - system_result = System_tests(self.relax) + sys_runner = System_tests(self.relax) + system_result = sys_runner.run() # Execute the unit tests. - runner = Run_unit_tests(root_path='test_suite/unit_tests') - unit_result = runner.run() + unit_runner = Run_unit_tests(root_path='test_suite/unit_tests') + unit_result = unit_runner.run() # Print out a summary of the test suite. ######################################## Modified: 1.3/test_suite/system_tests/main.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/main.py?rev=3178&r1=3177&r2=3178&view=diff ============================================================================== --- 1.3/test_suite/system_tests/main.py (original) +++ 1.3/test_suite/system_tests/main.py Wed Mar 14 03:45:52 2007 @@ -51,6 +51,9 @@ self.relax = relax + + def run(self): + """Method for the execution of all system/functional tests.""" # Introduction. ############### @@ -228,10 +231,11 @@ self.exec_tests(self.generic_test_array) - # Summary. - ########## - - self.summary() + # Fin. + ###### + + global_pass = self.summary() + return global_pass @@ -436,3 +440,7 @@ else: sys.stdout.write(" %-10s\n" % "[ Failed ]") sys.stdout.write("\n\n") + + + # Return the global_pass value. + return global_pass