Salome HOME
Merge from V6_main 13/12/2012
[modules/homard.git] / tests / test_1.py
index 01a0776825db36ce2242c18ac0102844016c762d..74a1f6581d854ea3070ee14529080a7bfd0ada81 100644 (file)
@@ -132,6 +132,8 @@ Copyright EDF-R&D 2010
 ######################################################################################
 
 homard = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD')
+assert homard is not None, "Impossible to load homard engine"
+
 #
 # Exec of HOMARD-SALOME
 #
@@ -139,9 +141,9 @@ try :
   error_main = homard_exec(salome.myStudy)
   if error_main :
     raise Exception('Pb in homard_exec at iteration %d' %error_main )
-except :
-  raise Exception('Pb in homard_exec at iteration %d' %error_main )
-  sys.exit(1)
+except Exception, e:
+  raise Exception('Pb in homard_exec: '+e.message)
+
 #
 # Test of the result
 #