Skip to content

Commit

Permalink
Merge pull request #1098 from KevinMenden/test-yml-create-cleanup
Browse files Browse the repository at this point in the history
Direct output of `nf-core modules create-test-yml` to tmp dir
  • Loading branch information
KevinMenden authored Jun 23, 2021
2 parents 9ccd25c + fed86ce commit fa9f2bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
* Use Biocontainers API instead of quayi.io API for `nf-core modules create` [[#875](https://github.com/nf-core/tools/issues/875)]

#### Sync
Expand Down
4 changes: 2 additions & 2 deletions nf_core/modules/test_yml_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fa9f2bd

Please sign in to comment.