Skip to content

Commit

Permalink
Merge pull request #2400 from nf-core/module_nextflow_config
Browse files Browse the repository at this point in the history
Removing the unnecessary `-c` option
  • Loading branch information
muffato authored Aug 17, 2023
2 parents e964a40 + cf7e803 commit 13d17b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nf_core/module-template/tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# nf-core modules create-test-yml {{ tool }}{%- if subtool %}/{{ subtool }}{%- endif %}
{% endif -%}
- name: "{{ component }}{{ ' '+subtool if subtool else '' }}"
command: nextflow run ./tests/modules/{{ org }}/{{ component_dir }} -entry test_{{ component_name_underscore }} -c ./tests/config/nextflow.config -c ./tests/modules/{{ org }}/{{ component_dir }}/nextflow.config
command: nextflow run ./tests/modules/{{ org }}/{{ component_dir }} -entry test_{{ component_name_underscore }} -c ./tests/config/nextflow.config
tags:
- "{{ component }}{% if subtool -%}"
- "{{ component }}/{{ subtool }}{%- endif %}"
Expand Down
2 changes: 1 addition & 1 deletion nf_core/modules/test_yml_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def build_single_test(self, entry_point):
# See https://github.com/nf-core/tools/issues/1562
default_val = (
f"nextflow run ./tests/modules/{self.org}/{self.module_name} -entry {entry_point} "
f"-c ./tests/config/nextflow.config -c ./tests/modules/{self.org}/{self.module_name}/nextflow.config"
f"-c ./tests/config/nextflow.config"
)
if self.no_prompts:
ep_test["command"] = default_val
Expand Down

0 comments on commit 13d17b8

Please sign in to comment.