]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ExchangeAPI/Test/TestExchange.py
Salome HOME
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git] / src / ExchangeAPI / Test / TestExchange.py
index 94c731faf8a22553bd1beac46d23306ff9d9a82e..06e294a5c2bafd69d2ef84e7106596b6094d4767 100644 (file)
@@ -47,4 +47,5 @@ class ExchangeTestCase(unittest.TestCase):
         self.session.finishOperation()
 
 if __name__ == "__main__":
-    unittest.main(exit=False)
+    test_program = unittest.main(exit=False)
+    assert test_program.result.wasSuccessful(), "Test failed"