]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Do not delete/recreate the container on a failed test
authorTom Hromatka <tom.hromatka@oracle.com>
Mon, 28 Mar 2022 15:36:46 +0000 (09:36 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 1 Apr 2022 14:01:58 +0000 (08:01 -0600)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
ftests/ftests.py

index af357a9f82f6a9e59b454a797c5a210dfe6195af..38c6c0b71b2be2e93dd19645a0259f7899bf03b3 100755 (executable)
@@ -296,11 +296,6 @@ def run_tests(config):
                         failure_cause = e
                         Log.log_debug(e)
                         ret = consts.TEST_FAILED
-
-                        # if the test does cause an exception, it may not have
-                        # cleaned up after itself.  re-create the container
-                        teardown(config)
-                        setup(config, do_teardown=False)
                     finally:
                         run_time = time.time() - start_time
                         if ret == consts.TEST_PASSED: