Merge "Hot fix for switchFunc"
diff --git a/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py b/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
index d174cdd..aad5335 100644
--- a/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
+++ b/TestON/tests/SCPF/SCPFswitchLat/dependencies/switchFunc.py
@@ -85,7 +85,7 @@
resultText = resultFile.readlines()
if d == "TCP":
# if TCP package, we should use the latest one package
- resultText = resultText[len(resultText) - 1:]
+ resultText = resultText[len(resultText) - 1]
else:
resultText = resultText[0]
main.log.info("Capture result:" + resultText)
@@ -246,5 +246,5 @@
resultDict[switchStatus]['node' + str(i)][ 'A_D' ].append( A_Dtemp )
resultDict[switchStatus]['node' + str(i)][ 'D_G' ].append( D_Gtemp )
resultDict[switchStatus]['node' + str(i)][ 'E_E' ].append( E_Etemp )
- main.CLIs[0].removeDevice(["of:0000000000000001"])
+ main.CLIs[0].removeDevice( "of:0000000000000001" )