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_one_chain_two_service_functions.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sfc/tests/functest/sfc_one_chain_two_service_functions.py') diff --git a/sfc/tests/functest/sfc_one_chain_two_service_functions.py b/sfc/tests/functest/sfc_one_chain_two_service_functions.py index eeb2ec8c..bd333377 100644 --- a/sfc/tests/functest/sfc_one_chain_two_service_functions.py +++ b/sfc/tests/functest/sfc_one_chain_two_service_functions.py @@ -76,6 +76,14 @@ class SfcOneChainTwoServiceTC(sfc_parent_function.SfcCommonTestCase): 'sfc.tests.functest.sfc_one_chain_two_service_functions': 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 + if __name__ == '__main__': -- cgit 1.2.3-korg