Archive cluster test failure logs if leader command fails for the test
Change-Id: I6fab60b51de1930ef77584b322aa6b5867d08ab5
diff --git a/src/test/cluster/clusterTest.py b/src/test/cluster/clusterTest.py
index 926b4f2..2260612 100644
--- a/src/test/cluster/clusterTest.py
+++ b/src/test/cluster/clusterTest.py
@@ -389,6 +389,9 @@
failed = self.verify_leaders(controllers)
if failed:
log.error('Test failed on ITERATION %d' %iteration)
+ CordLogger.archive_results(self._testMethodName,
+ controllers = controllers,
+ iteration = 'FAILED')
assert_equal(len(failed), 0)
if st is False:
log.info('No storage exception and ONOS cluster was not formed successfully')