[Erp5-report] r41013 luke - /erp5/trunk/utils/erp5.appliance.test/src/test.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 2 10:12:18 CET 2010


Author: luke
Date: Thu Dec  2 10:12:18 2010
New Revision: 41013

URL: http://svn.erp5.org?rev=41013&view=rev
Log:
 - add some bulletproofnes - stop only after critical exceptions

Modified:
    erp5/trunk/utils/erp5.appliance.test/src/test.py

Modified: erp5/trunk/utils/erp5.appliance.test/src/test.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.appliance.test/src/test.py?rev=41013&r1=41012&r2=41013&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.appliance.test/src/test.py [utf8] (original)
+++ erp5/trunk/utils/erp5.appliance.test/src/test.py [utf8] Thu Dec  2 10:12:18 2010
@@ -526,9 +526,13 @@ def run_once(config, software_path,
           time.sleep(5)
     except SubFailed:
       pass
-    except:
+    except (SystemExit, KeyboardInterrupt, SyntaxError):
       exc_info = sys.exc_info()
+      # re raise really important exepctions
       raise
+    except Exception:
+      # anything else shall not stop the flow
+      exc_info = sys.exc_info()
     else:
       status = True
   finally:



More information about the Erp5-report mailing list