Commit 099ce5a9 authored by Matthieu Muffato's avatar Matthieu Muffato Committed by ens-bwalts

Added no_cleanup, like in the Perl side

parent 635c89ca
......@@ -54,6 +54,9 @@ def testRunnable(testcase, runnableClass, inputParameters, refEvents, config=Non
pre_cleanup should run).
- no_write: bool, default False.
whether write_output is skipped.
- no_cleanup: bool, default False.
whether the temporary directory is removed at the end
of the run.
- test_autoflow: bool, default not set.
when set, check that this is the final value of the
job's autoflow attribute.
......@@ -131,7 +134,8 @@ def testRunnable(testcase, runnableClass, inputParameters, refEvents, config=Non
except Exception as e:
self.__handle_exception(e)
self.__cleanup_worker_temp_directory()
if not self.__config.get('no_cleanup'):
self.__cleanup_worker_temp_directory()
def __run_method_if_exists(self, method):
"""Run the method (one of "fetch_input", "run", "write_output",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment