Skip to content

Commit

Permalink
Remove adding MATLAB path for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahila authored Nov 14, 2023
1 parent 9af80eb commit 8c0d9ef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/integ-test/java/com/mathworks/ci/RunMATLABCommandIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public void testTearDown() {

@Test
public void verifyBuildFailureWhenMatlabCommandFails() throws Exception {
this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), MatlabRootSetup.getMatlabRoot()));
project.getBuildWrappersList().add(this.buildWrapper);
// this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), MatlabRootSetup.getMatlabRoot()));
// project.getBuildWrappersList().add(this.buildWrapper);
RunMatlabCommandBuilder tester =
new RunMatlabCommandBuilder();
tester.setMatlabCommand(TestData.getPropValues("pwd"));
Expand All @@ -79,8 +79,8 @@ public void verifyBuildFailureWhenMatlabCommandFails() throws Exception {
*/
@Test
public void verifyBuildPassesWhenMatlabCommandPasses() throws Exception {
this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), MatlabRootSetup.getMatlabRoot()));
project.getBuildWrappersList().add(this.buildWrapper);
// this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), MatlabRootSetup.getMatlabRoot()));
// project.getBuildWrappersList().add(this.buildWrapper);
RunMatlabCommandBuilder tester =
new RunMatlabCommandBuilder();
tester.setMatlabCommand("version");
Expand All @@ -99,8 +99,8 @@ public void verifyMatrixBuildFails() throws Exception {
Axis axes = new Axis("VERSION", "R2018a", "R2018b");
matrixProject.setAxes(new AxisList(axes));
String matlabRoot = TestData.getPropValues("matlab.invalid.root.path") + "VERSION";
this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), matlabRoot));
matrixProject.getBuildWrappersList().add(this.buildWrapper);
// this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), matlabRoot));
// matrixProject.getBuildWrappersList().add(this.buildWrapper);

matrixProject.getBuildersList().add(scriptBuilder);
Map<String, String> vals = new HashMap<String, String>();
Expand All @@ -126,8 +126,8 @@ public void verifyMatrixBuildPasses() throws Exception {
Axis axes = new Axis("VERSION", MATLABVersion1, MATLABVersion2);
matrixProject.setAxes(new AxisList(axes));
String matlabRoot = MatlabRootSetup.getMatlabRoot();
this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), matlabRoot.replace(MATLABVersion1, "$VERSION")));
matrixProject.getBuildWrappersList().add(this.buildWrapper);
// this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), matlabRoot.replace(MATLABVersion1, "$VERSION")));
// matrixProject.getBuildWrappersList().add(this.buildWrapper);
RunMatlabCommandBuilder tester = new RunMatlabCommandBuilder();

tester.setMatlabCommand("version");
Expand Down

0 comments on commit 8c0d9ef

Please sign in to comment.