Adding ctrl-d sendline to correctly escape faulty ONOS cli start
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index da3777c..feca717 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -195,6 +195,12 @@
#If failed, send ctrl+c to process and try again
main.log.info("Starting CLI failed. Retrying...")
self.handle.sendline("\x03")
+ i = self.handle.expect(["onos>",pexpect.TIMEOUT],
+ timeout=30)
+ #Send ctrl+d to exit the onos> prompt that was
+ #not successful
+ self.handle.sendline("\x04")
+ self.handle.expect("\$")
self.handle.sendline("onos -w "+str(ONOS_ip))
i = self.handle.expect(["onos>",pexpect.TIMEOUT],
timeout=30)