Print clusters on failed assert
Change-Id: I966e3bbf64cb124f2effeefab9da1b2317126dea
diff --git a/TestON/tests/HA/HAkillNodes/HAkillNodes.py b/TestON/tests/HA/HAkillNodes/HAkillNodes.py
index bda572f..6fb4d6c 100644
--- a/TestON/tests/HA/HAkillNodes/HAkillNodes.py
+++ b/TestON/tests/HA/HAkillNodes/HAkillNodes.py
@@ -1701,8 +1701,9 @@
actual=consistentClustersResult,
onpass="Clusters view is consistent across all ONOS nodes",
onfail="ONOS nodes have different views of clusters" )
- if consistentClustersResult != main.TRUE:
+ if not consistentClustersResult:
main.log.debug( clusters )
+
# there should always only be one cluster
main.step( "Cluster view correct across ONOS nodes" )
try:
@@ -2574,6 +2575,8 @@
actual=consistentClustersResult,
onpass="Clusters view is consistent across all ONOS nodes",
onfail="ONOS nodes have different views of clusters" )
+ if not consistentClustersResult:
+ main.log.debug( clusters )
main.step( "There is only one SCC" )
# there should always only be one cluster