Printing out pexpect before and added try catches for splitting lines
Change-Id: Ica8b031f5120b6ff0d09268a381d5317ef438d48
diff --git a/TestON/tests/SCPFintentRerouteLat/SCPFintentRerouteLat.py b/TestON/tests/SCPFintentRerouteLat/SCPFintentRerouteLat.py
index 3b74dcf..e62c633 100644
--- a/TestON/tests/SCPFintentRerouteLat/SCPFintentRerouteLat.py
+++ b/TestON/tests/SCPFintentRerouteLat/SCPFintentRerouteLat.py
@@ -258,13 +258,28 @@
break
time.sleep(2)
- temp = raw.splitlines()
+ if debug: main.log.debug("raw: " + raw)
+
+ try:
+ temp = raw.splitlines()
+ except ValueError:
+ main.log.error("Exception at line 264: cannot split lines")
+ continue
+
+ if debug: main.log.debug("temp (after splitlines): " + str(temp))
+
for line in temp:
if str(date) in line:
temp = line
break
- cutTimestamp = (temp.split(" "))[0] + " " + (temp.split(" "))[1]
+ if debug: main.log.debug("temp (checking for date): " + str(temp))
+
+ try:
+ cutTimestamp = (temp.split(" "))[0] + " " + (temp.split(" "))[1]
+ except ValueError:
+ main.log.error("Exception at line 279: cannot split on spaces")
+
if debug: main.log.info("Cut timestamp: " + cutTimestamp)
#validate link count and flow count