else the remainder of the tests will not complete

Signed-off-by: Angus Salkeld <asalk...@redhat.com>
---
 cts/corotests.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/cts/corotests.py b/cts/corotests.py
index f456938..45a9269 100644
--- a/cts/corotests.py
+++ b/cts/corotests.py
@@ -428,7 +428,11 @@ class CpgMsgOrderBase(CoroTest):
 
             while len(msgs[n]) < self.total_num_msgs and waited < 360:
 
-                msg = self.CM.cpg_agent[n].read_messages(50)
+                try:
+                    msg = self.CM.cpg_agent[n].read_messages(50)
+                except:
+                    return self.failure('connection to test cpg_agent failed.')
+
                 if not msg == None:
                     msgl = msg.split(";")
 
-- 
1.7.3.1

_______________________________________________
Openais mailing list
Openais@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to