r16396 - gnucash/branches/dogtail/src/test-dogtail - validator no longer raise exception it returns the return code and the testcase assert it

Ahmed Sayed asayed at cvs.gnucash.org
Mon Aug 6 18:42:34 EDT 2007


Author: asayed
Date: 2007-08-06 18:42:34 -0400 (Mon, 06 Aug 2007)
New Revision: 16396
Trac: http://svn.gnucash.org/trac/changeset/16396

Modified:
   gnucash/branches/dogtail/src/test-dogtail/validator.py
Log:
validator no longer raise exception it returns the return code and the testcase assert it


Modified: gnucash/branches/dogtail/src/test-dogtail/validator.py
===================================================================
--- gnucash/branches/dogtail/src/test-dogtail/validator.py	2007-08-06 22:41:04 UTC (rev 16395)
+++ gnucash/branches/dogtail/src/test-dogtail/validator.py	2007-08-06 22:42:34 UTC (rev 16396)
@@ -22,14 +22,7 @@
     act_file.close()
     # get divided 265 to get the exact system status
     error_code = os.system("diff %s %s" % (act_filename, ref_filename))/256
-    if error_code == EXIT_SUCCESS:
-        return 
-    elif error_code == EXIT_FAILURE:
-        raise Exception('Exit Failure: Refernece file not match the act file')
-    elif error_code == EXIT_TROUBLE:
-        raise Exception('Exit Trouble: Reference file not found')
-    else:
-        raise Exception('Unknown Error')
+    return error_code
 
 def generate_act_file (node, file, depth = 0):
     """ helper method that Generate the act file, The file Generated in the testcase """



More information about the gnucash-changes mailing list