From 69dfe54898ed68cd7c2431575e5b13636babda19 Mon Sep 17 00:00:00 2001 From: Ben Sherman Date: Wed, 11 Dec 2024 10:53:30 -0600 Subject: [PATCH] Fix failing tests Signed-off-by: Ben Sherman --- .../src/main/groovy/nextflow/config/ConfigBuilder.groovy | 2 +- .../src/test/groovy/nextflow/config/ConfigBuilderTest.groovy | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nextflow/src/main/groovy/nextflow/config/ConfigBuilder.groovy b/modules/nextflow/src/main/groovy/nextflow/config/ConfigBuilder.groovy index ab0f0bf76a..5681f3fde4 100644 --- a/modules/nextflow/src/main/groovy/nextflow/config/ConfigBuilder.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/config/ConfigBuilder.groovy @@ -338,7 +338,7 @@ class ConfigBuilder { binding.put('baseDir', base) binding.put('projectDir', base) binding.put('launchDir', Paths.get('.').toRealPath()) - binding.put('outputDir', Paths.get('results').toRealPath()) + binding.put('outputDir', Paths.get('results').complete()) binding.put('secrets', SecretsLoader.secretContext()) return binding } diff --git a/modules/nextflow/src/test/groovy/nextflow/config/ConfigBuilderTest.groovy b/modules/nextflow/src/test/groovy/nextflow/config/ConfigBuilderTest.groovy index d670ad1286..b3781a92ee 100644 --- a/modules/nextflow/src/test/groovy/nextflow/config/ConfigBuilderTest.groovy +++ b/modules/nextflow/src/test/groovy/nextflow/config/ConfigBuilderTest.groovy @@ -148,6 +148,7 @@ class ConfigBuilderTest extends Specification { q = "$baseDir/2" x = "$projectDir/3" y = "$launchDir/4" + z = "$outputDir/5" } ''' @@ -158,6 +159,7 @@ class ConfigBuilderTest extends Specification { cfg.params.q == '/base/path/2' cfg.params.x == '/base/path/3' cfg.params.y == "${Paths.get('.').toRealPath()}/4" + cfg.params.z == "${Paths.get('results').complete()}/5" }