Skip to content

Commit

Permalink
Fix issue with empty script and moduleDir
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor committed Aug 31, 2023
1 parent dcd5423 commit f77ad8a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/askimed/nf/test/lang/TestContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ public void init(AbstractTest test) {
this.launchDir = test.launchDir.getAbsolutePath();
this.workDir = test.workDir.getAbsolutePath();
this.outputDir = test.outputDir.getAbsolutePath();
this.moduleDir = test.moduleDir.getAbsolutePath();
this.moduleTestDir = test.moduleTestDir.getAbsolutePath();
if (moduleDir != null) {
this.moduleDir = test.moduleDir.getAbsolutePath();
}
if (moduleTestDir != null) {
this.moduleTestDir = test.moduleTestDir.getAbsolutePath();
}
}

public ParamsMap getParams() {
Expand Down

0 comments on commit f77ad8a

Please sign in to comment.