Skip to content

Commit

Permalink
Updated rewview comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed Dec 2, 2019
1 parent 5fddcb5 commit 84602d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/mathworks/ci/MatlabBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ private synchronized int execMatlabCommand(FilePath workspace, Launcher launcher

//Check the test run mode option selected by user and identify the target workspace to copy the scratch file.
final String testRunMode = this.getTestRunTypeList().getDescriptor().getId();
FilePath targetWorkspace = new FilePath(launcher.getChannel(), workspace.getRemote());

// Copy MATLAB scratch file into the workspace only if Automatic option is selected.
if (testRunMode.contains(AUTOMATIC_OPTION)) {
FilePath targetWorkspace = new FilePath(launcher.getChannel(), workspace.getRemote());
copyMatlabScratchFileInWorkspace(MATLAB_RUNNER_RESOURCE, MATLAB_RUNNER_TARGET_FILE, targetWorkspace);
}
} catch (Exception e) {
Expand Down

0 comments on commit 84602d8

Please sign in to comment.