@@ -35,25 +35,9 @@ nextflow_process {
3535 then {
3636 assertAll(
3737 { assert process.success },
38- { assert process.out.grm_files.size() == 1 },
39- { assert process.out.grm_files.get(0).get(0).id == 'gcta_grm' },
40- { assert process.out.grm_files.get(0).get(0).keySet() == ['id'] as Set },
41- { assert process.out.grm_files.get(0).get(1).size() == 3 },
42- {
43- assert process.out.grm_files.get(0).get(1).collect { file(it).name }.toSet() == [
44- 'gcta_grm.grm.id',
45- 'gcta_grm.grm.bin',
46- 'gcta_grm.grm.N.bin'
47- ] as Set
48- },
4938 { assert file(path(process.out.grm_files.get(0).get(1)[0]).parent.toString() + '/.command.sh').text.contains('--make-grm') },
5039 { assert file(path(process.out.grm_files.get(0).get(1)[0]).parent.toString() + '/.command.sh').text.contains('--mpfile') },
51- {
52- assert snapshot(
53- process.out.grm_files,
54- process.out.findAll { key, val -> key.startsWith('versions') }
55- ).match()
56- }
40+ { assert snapshot(sanitizeOutput(process.out)).match() }
5741 )
5842 }
5943 }
@@ -84,25 +68,9 @@ nextflow_process {
8468 then {
8569 assertAll(
8670 { assert process.success },
87- { assert process.out.grm_files.size() == 1 },
88- { assert process.out.grm_files.get(0).get(0).id == 'gcta_grm_bed' },
89- { assert process.out.grm_files.get(0).get(0).keySet() == ['id'] as Set },
90- { assert process.out.grm_files.get(0).get(1).size() == 3 },
91- {
92- assert process.out.grm_files.get(0).get(1).collect { file(it).name }.toSet() == [
93- 'gcta_grm_bed.grm.id',
94- 'gcta_grm_bed.grm.bin',
95- 'gcta_grm_bed.grm.N.bin'
96- ] as Set
97- },
9871 { assert file(path(process.out.grm_files.get(0).get(1)[0]).parent.toString() + '/.command.sh').text.contains('--make-grm') },
9972 { assert file(path(process.out.grm_files.get(0).get(1)[0]).parent.toString() + '/.command.sh').text.contains('--mbfile') },
100- {
101- assert snapshot(
102- process.out.grm_files,
103- process.out.findAll { key, val -> key.startsWith('versions') }
104- ).match()
105- }
73+ { assert snapshot(sanitizeOutput(process.out)).match() }
10674 )
10775 }
10876 }
@@ -135,7 +103,7 @@ nextflow_process {
135103 then {
136104 assertAll(
137105 { assert process.success },
138- { assert snapshot(process.out).match() }
106+ { assert snapshot(sanitizeOutput( process.out) ).match() }
139107 )
140108 }
141109 }
0 commit comments