Skip to content

Commit

Permalink
Extract version from runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
nwiltsie committed Mar 1, 2024
1 parent 24202d3 commit 6b7d079
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run-nextflow-tests/betterconfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import groovy.lang.Closure
import groovy.lang.ProxyMetaClass
import groovy.util.ConfigObject

import nextflow.Const
import nextflow.cli.CliOptions
import nextflow.cli.CmdRun
import nextflow.config.ConfigBuilder
Expand Down Expand Up @@ -210,6 +211,8 @@ void print_configuration() {
walk(interceptor, "process", config.process)
}

System.out.println("betterconfig_nextflow_version=${Const.APP_VER}")

System.out << ConfigHelper.toPropertiesString(config, false)
}

Expand Down
3 changes: 3 additions & 0 deletions run-nextflow-tests/configtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ def from_file(cls: Type[T], pipeline: Path, filepath: Path) -> T:

def replace_results(self: T, updated_results) -> T:
"Return another test object with updated results and filepath."
nf_version = updated_results.pop("betterconfig_nextflow_version")

regenerated_test = dataclasses.replace(
self,
nextflow_version=nf_version,
expected_result=updated_results
)

Expand Down

0 comments on commit 6b7d079

Please sign in to comment.