Replace "while 1" loop with a for loop in check_flow
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index 56a3e6d..fef306a 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -534,7 +534,7 @@
             time.sleep(1)
             self.handle.sendline(self.home + "/web/get_flow.py all")
             self.handle.expect("get_flow")
-            while 1:
+            for x in range(15):
                 i=self.handle.expect(['FlowPath','FlowEntry','NOT','\$',pexpect.TIMEOUT],timeout=180)
                 if i==0:
                     count = count + 1