Imrpove logic used for determinging which nodes to copy karaf.log
files from.
Fix test case 19 failing consistently in single node FUNCoptical
Change-Id: Icd161d1e4a34a71b185a7fbe016c279a65cc5e5b
diff --git a/TestON/tests/FUNC/FUNCintentRest/FUNCintentRest.py b/TestON/tests/FUNC/FUNCintentRest/FUNCintentRest.py
index 51ad5b1..3824ea3 100644
--- a/TestON/tests/FUNC/FUNCintentRest/FUNCintentRest.py
+++ b/TestON/tests/FUNC/FUNCintentRest/FUNCintentRest.py
@@ -785,9 +785,8 @@
stepResult = main.TRUE
scpResult = main.TRUE
copyResult = main.TRUE
- i = 0
- for cli in main.CLIs2:
- main.node = cli
+ for i in range( main.numCtrls ):
+ main.node = main.CLIs2[ i ]
ip = main.ONOSip[ i ]
main.node.ip_address = ip
scpResult = scpResult and main.ONOSbench.scp( main.node ,
@@ -800,7 +799,6 @@
stepResult = main.TRUE and stepResult
else:
stepResult = main.FALSE and stepResult
- i += 1
utilities.assert_equals( expect=main.TRUE,
actual=stepResult,
onpass="Successfully copied remote ONOS logs",