From d7482dea9e52eccdd59c72b0dc275bb52b9289d0 Mon Sep 17 00:00:00 2001 From: kevinmenden Date: Fri, 28 May 2021 09:51:19 +0200 Subject: [PATCH 1/2] changed work dir to tmp dir --- nf_core/modules/test_yml_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nf_core/modules/test_yml_builder.py b/nf_core/modules/test_yml_builder.py index 63bbc289b0..8912784e38 100644 --- a/nf_core/modules/test_yml_builder.py +++ b/nf_core/modules/test_yml_builder.py @@ -275,8 +275,8 @@ def run_tests_workflow(self, command): tmp_dir = tempfile.mkdtemp() tmp_dir_repeat = tempfile.mkdtemp() - command += f" --outdir {tmp_dir}" - command_repeat = command + f" --outdir {tmp_dir_repeat}" + command_repeat = command + f" --outdir {tmp_dir_repeat} -work-dir {tmp_dir_repeat}" + command += f" --outdir {tmp_dir} -work-dir {tmp_dir}" log.info(f"Running '{self.module_name}' test with command:\n[violet]{command}") try: From 8c4de16acab40bce426f6215bd66a5f280c6ff8f Mon Sep 17 00:00:00 2001 From: kevinmenden Date: Fri, 28 May 2021 09:53:58 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12780b3faf..8fdef69197 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ ### Modules * Update comment style of modules `functions.nf` template file [[#1076](https://github.com/nf-core/tools/issues/1076)] +* Changed working directory to temporary directory for `nf-core modules create-test-yml` [[#908](https://github.com/nf-core/tools/issues/908)] #### Sync