Updated dumpsoftwareversions.py to match the pipeline template (#2045)

* Updated dumpsoftwareversions.py to match the pipeline template

* Fixed the test

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
Matthieu Muffato 2022-09-26 18:45:07 +01:00 committed by GitHub
parent f0a86eaf5b
commit de7b50fdd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -58,11 +58,12 @@ versions_by_module = {}
for process, process_versions in versions_by_process.items():
module = process.split(":")[-1]
try:
assert versions_by_module[module] == process_versions, (
"We assume that software versions are the same between all modules. "
"If you see this error-message it means you discovered an edge-case "
"and should open an issue in nf-core/tools. "
)
if versions_by_module[module] != process_versions:
raise AssertionError(
"We assume that software versions are the same between all modules. "
"If you see this error-message it means you discovered an edge-case "
"and should open an issue in nf-core/tools. "
)
except KeyError:
versions_by_module[module] = process_versions

View file

@ -42,7 +42,7 @@ workflow test_custom_dumpsoftwareversions {
// cases where subworkflows have a module with the same name.
fastqc1 ( input )
fastqc2 ( input )
MULTIQC ( fastqc2.out.zip.collect { it[1] }, [[],[]] )
MULTIQC ( fastqc2.out.zip.collect { it[1] }, [], [], [] )
fastqc1
.out