Skip to content

Commit d33c51f

Browse files
committed
test: ignore environment-dependent multiqc_plots in default test snapshot
MultiQC renders multiqc_plots/ (pdf/png/svg) on linux/amd64 (CI) but not on all local archs, so the file-list (stable_name) snapshot of the default test was env-dependent and failed on CI. Exclude multiqc_plots/ from stable_name (stable_path already ignores the plot files via .nftignore).
1 parent 6abf16f commit d33c51f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/default.nf.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ nextflow_pipeline {
1414

1515
then {
1616
// stable_name: All files + folders in ${params.outdir}/ with a stable name
17-
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}'])
17+
// multiqc_plots/ exports are environment-dependent (rendered on linux/amd64 CI but not on
18+
// some local arch), so exclude them from the file-list snapshot for stability.
19+
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}', 'multiqc/multiqc_plots', 'multiqc/multiqc_plots/**'])
1820
// stable_path: All files in ${params.outdir}/ with stable content
1921
def stable_path = getAllFilesFromDir(params.outdir, ignoreFile: 'tests/.nftignore')
2022
// bam_files: All bam files

0 commit comments

Comments
 (0)