Fix a problem, which if didn't get package

Change-Id: I1eb03cc6698ac67fcbaf07e43e43a4c238af7f34
diff --git a/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py b/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
index 2f96cda..853668d 100644
--- a/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
+++ b/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
@@ -77,7 +77,6 @@
         time.sleep(10)
     main.log.info( "Stopping all Tshark processes" )
     main.ONOSbench.tsharkStop()
-
     tempResultDict = {}
     if switchStatus == 'up':
         for d in main.tsharkResultPath['up']:
@@ -105,18 +104,20 @@
             ACKlines = resultFile.readlines()
             resultFile.close()
 
+        AckPackage = ""
         for l in ACKlines:
             temp = processPackage(l)
             if temp['Seq'] == findSeqBySeqAck(FinAckOFseq, ACKlines):
                 AckPackage = l
-
-        FinAckText = FinAckText.strip()
-        FinAckText = FinAckText.split(" ")
-        AckPackage = AckPackage.strip()
-        AckPackage = AckPackage.split(" ")
-        tempResultDict['ACK'] = float("%.2f" % (float(AckPackage[1]) * 1000) )
-        tempResultDict['FA'] = float("%.2f" % (float(FinAckText[1]) * 1000) )
-
+        if len(AckPackage) > 0:
+            FinAckText = FinAckText.strip()
+            FinAckText = FinAckText.split(" ")
+            AckPackage = AckPackage.strip()
+            AckPackage = AckPackage.split(" ")
+            tempResultDict['ACK'] = float("%.2f" % (float(AckPackage[1]) * 1000) )
+            tempResultDict['FA'] = float("%.2f" % (float(FinAckText[1]) * 1000) )
+        else:
+            return
     # calculate latency
     if switchStatus == "up":
         # up Latency