From 37d5bca7cc52709e89d434345560cfe1d90e2e52 Mon Sep 17 00:00:00 2001 From: Panagiotis Karalis Date: Fri, 18 May 2018 16:29:39 +0300 Subject: Rethink the clean up process Using the '--nocleanup' parameter as part of command, the cleanup mechanism could be disable. Otherwise, the cleanup method is executed even if a exception has been raised. Change-Id: I9638369900f599793393feb5184c30b74f1b7c7e Signed-off-by: Panagiotis Karalis --- sfc/tests/functest/sfc_symmetric_chain.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sfc/tests/functest/sfc_symmetric_chain.py') diff --git a/sfc/tests/functest/sfc_symmetric_chain.py b/sfc/tests/functest/sfc_symmetric_chain.py index 067854db..b1400a71 100644 --- a/sfc/tests/functest/sfc_symmetric_chain.py +++ b/sfc/tests/functest/sfc_symmetric_chain.py @@ -138,6 +138,14 @@ class SfcSymmetricChain(sfc_parent_function.SfcCommonTestCase): if __name__ == 'sfc.tests.functest.sfc_symmetric_chain': return results.compile_summary(), self.creators + def get_creators(self): + """Return the creators info, specially in case the info is not + returned due to an exception. + + :return: creators + """ + return self.creators + def wait_for_classification_rules(ovs_logger, compute_nodes, server_compute, server_port, -- cgit 1.2.3-korg