Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void execute() throws Throwable {
nextflow.setErr(errFile);
nextflow.setDebug(isDebug());
nextflow.setLog(logFile);
nextflow.setLaunchDir(launchDir);
nextflow.setLaunchDir(baseDir);
nextflow.setWorkDir(workDir);
nextflow.setParamsFile(paramsFile);
nextflow.setOptions(getOptions());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void execute() throws Throwable {
nextflow.setErr(errFile);
nextflow.setDebug(isDebug());
nextflow.setLog(logFile);
nextflow.setLaunchDir(launchDir);
nextflow.setLaunchDir(baseDir);
nextflow.setWorkDir(workDir);
nextflow.setParamsFile(paramsFile);
nextflow.setOptions(getOptions());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public void execute() throws Throwable {
nextflow.setErr(errFile);
nextflow.setDebug(isDebug());
nextflow.setLog(logFile);
nextflow.setLaunchDir(launchDir);
nextflow.setLaunchDir(baseDir);
nextflow.setWorkDir(workDir);
nextflow.setParamsFile(paramsFile);
nextflow.setOptions(getOptions());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void execute() throws Throwable {
nextflow.setErr(errFile);
nextflow.setDebug(isDebug());
nextflow.setLog(logFile);
nextflow.setLaunchDir(launchDir);
nextflow.setLaunchDir(baseDir);
nextflow.setWorkDir(workDir);
nextflow.setParamsFile(paramsFile);
nextflow.setOptions(getOptions());
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions test-data/fileroot/hello.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
workflow HELLO {
channel.fromPath(params.input,checkIfExists: true)
}
18 changes: 18 additions & 0 deletions test-data/fileroot/hello.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
nextflow_workflow {
name "Test fileRoot support"
script "./hello.nf"
workflow "HELLO"

test("Should access fileRoot env variable") {
when {
params {
// Relative path should be resolved correctly from the project directory
input = "test-data/fileroot/empty_samplesheet.csv"
}
}

then {
assert workflow.success
}
}
}
Loading