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_two_chains_SSH_and_HTTP.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py') diff --git a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py index 56a434f1..7a65f548 100644 --- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py +++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py @@ -99,6 +99,14 @@ class SfcTwoChainsSSHandHTTP(sfc_parent_function.SfcCommonTestCase): if __name__ == 'sfc.tests.functest.sfc_two_chains_SSH_and_HTTP': 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