Improve SCPFhostLat test
- Now test will report result at the end of test case
Change-Id: I6caddef9d05922d21558c926a45d48fd68fd12f4
diff --git a/TestON/tests/SCPFhostLat/SCPFhostLat.py b/TestON/tests/SCPFhostLat/SCPFhostLat.py
index 3dd5129..c24b6a7 100644
--- a/TestON/tests/SCPFhostLat/SCPFhostLat.py
+++ b/TestON/tests/SCPFhostLat/SCPFhostLat.py
@@ -322,11 +322,15 @@
HosttoRemove.append( json.loads( gethost[1:len(gethost)-1] ).get('id') )
main.CLIs[0].removeHost(HosttoRemove)
+ main.log.info("Result List: {}".format(addingHostTime))
+
# calculate average latency from each nodes
averageResult = numpy.average(addingHostTime)
+ main.log.info("Average Latency: {}".format(averageResult))
# calculate std
stdResult = numpy.std(addingHostTime)
+ main.log.info("std: {}".format(stdResult))
# write to DB file
main.log.info("Writing results to DS file")