Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 2ec6b1c

Browse files
committed
Updated Test builder
1 parent 1e4ac95 commit 2ec6b1c

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

src/main/java/com/mathworks/ci/RunMatlabTestsBuilder.java

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -289,28 +289,18 @@ private synchronized int execMatlabCommand(FilePath workspace, Launcher launcher
289289
matlabLauncher = launcher.launch().pwd(workspace).envs(envVars);
290290
FilePath targetWorkspace = new FilePath(launcher.getChannel(), workspace.getRemote());
291291
if (launcher.isUnix()) {
292-
matlabLauncher =
293-
launcher.launch().pwd(workspace).envs(envVars)
294-
.cmds("./run_matlab_command.sh",
295-
constructCommandForTest(getInputArguments()))
296-
.stdout(listener);
292+
matlabLauncher = launcher.launch().pwd(workspace).envs(envVars).cmds("./run_matlab_command.sh",constructCommandForTest(getInputArguments())).stdout(listener);
297293
// Copy runner .sh for linux platform in workspace.
298-
cpoyFileInWorkspace(MatlabBuilderConstants.SHELL_RUNNER_SCRIPT,
299-
"Builder.matlab.runner.script.target.file.linux.name", targetWorkspace);
294+
cpoyFileInWorkspace(MatlabBuilderConstants.SHELL_RUNNER_SCRIPT,"Builder.matlab.runner.script.target.file.linux.name", targetWorkspace);
300295
} else {
301296
launcher = launcher.decorateByPrefix("cmd.exe", "/C");
302-
matlabLauncher = launcher.launch().pwd(workspace).envs(envVars)
303-
.cmds("run_matlab_command.bat",
304-
"\"" + constructCommandForTest(getInputArguments()) + "\"")
305-
.stdout(listener);
297+
matlabLauncher = launcher.launch().pwd(workspace).envs(envVars).cmds("run_matlab_command.bat","\"" + constructCommandForTest(getInputArguments()) + "\"").stdout(listener);
306298
// Copy runner.bat for Windows platform in workspace.
307-
cpoyFileInWorkspace(MatlabBuilderConstants.BAT_RUNNER_SCRIPT,
308-
"Builder.matlab.runner.script.target.file.windows.name", targetWorkspace);
299+
cpoyFileInWorkspace(MatlabBuilderConstants.BAT_RUNNER_SCRIPT,"Builder.matlab.runner.script.target.file.windows.name", targetWorkspace);
309300
}
310301

311302
// Copy MATLAB scratch file into the workspace.
312-
cpoyFileInWorkspace(MatlabBuilderConstants.MATLAB_RUNNER_RESOURCE,
313-
MatlabBuilderConstants.MATLAB_RUNNER_TARGET_FILE, targetWorkspace);
303+
cpoyFileInWorkspace(MatlabBuilderConstants.MATLAB_RUNNER_RESOURCE,MatlabBuilderConstants.MATLAB_RUNNER_TARGET_FILE, targetWorkspace);
314304
} catch (Exception e) {
315305
listener.getLogger().println(e.getMessage());
316306
return 1;

0 commit comments

Comments
 (0)