Skip to content

Commit

Permalink
Move other unstable file to file name only
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Jan 17, 2025
1 parent 1c02f8d commit b05b5de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/nf-core/catpack/prepare/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ nextflow_process {

then {
def stablefiles = []
file(process.out.db.get(0).get(1)).eachFileRecurse{ file -> if (!file.isDirectory() && !["database.log", "database.fastaid2LCAtaxid"].find {file.toString().endsWith(it)}) {stablefiles.add(file)} }
file(process.out.db.get(0).get(1)).eachFileRecurse{ file -> if (!file.isDirectory() && !["database.log", "database.fastaid2LCAtaxid", "database.taxids_with_multiple_offspring"].find {file.toString().endsWith(it)}) {stablefiles.add(file)} }
def unstablefiles = []
file(process.out.db.get(0).get(1)).eachFileRecurse{ file -> if (["database.log", "database.fastaid2LCAtaxid"].find {file.toString().endsWith(it)}) {unstablefiles.add(file.getName().toString())} }
file(process.out.db.get(0).get(1)).eachFileRecurse{ file -> if (["database.log", "database.fastaid2LCAtaxid", "database.taxids_with_multiple_offspring"].find {file.toString().endsWith(it)}) {unstablefiles.add(file.getName().toString())} }
assertAll(
{ assert process.success },
{ assert snapshot(
Expand Down
6 changes: 3 additions & 3 deletions modules/nf-core/catpack/prepare/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"content": [
[
"database.dmnd:md5,fd719846b0f5a177642fbddf461a5737",
"database.taxids_with_multiple_offspring:md5,d41d8cd98f00b204e9800998ecf8427e",
"names.dmp:md5,c471c27a4ce85ae74d2c63633c9ce1e3",
"nodes.dmp:md5,130f9132095562e09c732679c562f5e9"
],
[
"database.fastaid2LCAtaxid",
"database.log"
"database.log",
"database.taxids_with_multiple_offspring"
],
[
"versions.yml:md5,d851e296d4025a8060b6283ad3b63937"
Expand All @@ -19,7 +19,7 @@
"nf-test": "0.9.0",
"nextflow": "24.10.2"
},
"timestamp": "2025-01-17T10:03:59.849382686"
"timestamp": "2025-01-17T10:09:10.933519113"
},
"metagenome -sarscov2 - fasta - stub": {
"content": [
Expand Down

0 comments on commit b05b5de

Please sign in to comment.