Skip to content

Commit

Permalink
Make module template and test_yml_builder default commands match.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed May 12, 2022
1 parent 5d4488f commit 2eea6d6
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
@@ -1,7 +1,7 @@
## TODO nf-core: Please run the following command to build this file:
# nf-core modules create-test-yml {{ tool }}{%- if subtool %}/{{ subtool }}{%- endif %}
- name: "{{ tool }}{{ ' '+subtool if subtool else '' }}"
command: nextflow run ./tests/modules/{{ tool_dir }} -entry test_{{ tool_name_underscore }} -c ./tests/config/nextflow.config -c ./tests/modules/{{ tool_dir }}/nextflow.config
command: nextflow run ./tests/modules/{{ tool_dir }} -entry test_{{ tool_name_underscore }} -c ./tests/config/nextflow.config
tags:
- "{{ tool }}"
# {%- if subtool %}
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 @@ -165,7 +165,7 @@ def build_single_test(self, entry_point):

while ep_test["command"] == "":
default_val = (
f"nextflow run tests/modules/{self.module_name} -entry {entry_point} -c tests/config/nextflow.config"
f"nextflow run ./tests/modules/{self.module_name} -entry {entry_point} -c ./tests/config/nextflow.config"
)
if self.no_prompts:
ep_test["command"] = default_val
Expand Down

0 comments on commit 2eea6d6

Please sign in to comment.