|
1 | 1 | package com.mathworks.ci; |
2 | 2 | /** |
3 | 3 | * Copyright 2019-2020 The MathWorks, Inc. |
4 | | -
|
5 | 4 | * |
6 | 5 | * Test class for RunMatlabTestsBuilder |
7 | 6 | * |
8 | 7 | */ |
9 | 8 |
|
10 | 9 | import java.io.File; |
11 | | - |
12 | 10 | import java.io.IOException; |
13 | 11 | import java.net.URISyntaxException; |
14 | 12 | import java.net.URL; |
15 | 13 | import java.util.*; |
16 | | - |
17 | 14 | import com.gargoylesoftware.htmlunit.html.HtmlInput; |
18 | 15 | import org.junit.After; |
19 | 16 | import org.junit.Assert; |
@@ -156,7 +153,7 @@ public void verifyMATLABlaunchedWithDefaultArgumentsBatch() throws Exception { |
156 | 153 | public void verifyMATLABlaunchedWithDefaultArgumentsRWindows() throws Exception { |
157 | 154 | this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), getMatlabroot("R2017a"))); |
158 | 155 | project.getBuildWrappersList().add(this.buildWrapper); |
159 | | - project.getBuildersList().add(testBuilder);//adds latest plugin |
| 156 | + project.getBuildersList().add(testBuilder); |
160 | 157 | FreeStyleBuild build = project.scheduleBuild2(0).get(); |
161 | 158 | jenkins.assertLogContains("run_matlab_command", build); |
162 | 159 | jenkins.assertLogContains("runner", build); |
@@ -524,6 +521,6 @@ public void verifySystemTempDirDeleted() throws Exception { |
524 | 521 | project.getBuildWrappersList().add(this.buildWrapper); |
525 | 522 | project.getBuildersList().add(testBuilder); |
526 | 523 | FreeStyleBuild build = project.scheduleBuild2(0).get(); |
527 | | - jenkins.assertLogContains("rmdir(destination,'s')", build); |
| 524 | + jenkins.assertLogContains("rmdir(tmpDir,'s')", build); |
528 | 525 | } |
529 | 526 | } |
0 commit comments