Update driver to match changes to the ONOS log rotations
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index c382417..4b412eb 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -1155,10 +1155,10 @@
i = self.handle.expect(["\$",pexpect.EOF,pexpect.TIMEOUT])
#main.log.warn("first expect response: " +str(i))
self.handle.sendline("cd "+self.home+"/onos-logs")
- self.handle.sendline("grep \"xception\" *")
+ self.handle.sendline("zgrep \"xception\" *")
i = self.handle.expect(["\*",pexpect.EOF,pexpect.TIMEOUT])
#main.log.warn("second expect response: " +str(i))
- i = self.handle.expect(["\$",pexpect.EOF,pexpect.TIMEOUT])
+ i = self.handle.expect(["\$",pexpect.EOF,pexpect.TIMEOUT],timeout=120)
#main.log.warn("third expect response: " +str(i))
response = self.handle.before
count = 0
@@ -1166,6 +1166,9 @@
if re.search("log:", line):
output +="Exceptions found in " + line + "\n"
count +=1
+ elif re.search("log\.gz:",line):
+ output+="Exceptions found in " + line + "\n"
+ count +=1
elif re.search("std...:",line):
output+="Exceptions found in " + line + "\n"
count +=1