Skip to content

Commit 0bbc068

Browse files
committedMar 7, 2015
[JENKINS-27162] Reproduce in unittest
1 parent 1ad1c98 commit 0bbc068

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎src/test/java/hudson/matrix/MatrixTest.java

+15
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,21 @@ public void testApi() throws Exception {
8383
assertEquals(4, xml.getByXPath("//matrixProject/activeConfiguration").size());
8484
}
8585

86+
@Issue("JENKINS-27162")
87+
public void testCompletedLogging() throws Exception {
88+
MatrixProject project = createMatrixProject();
89+
project.setAxes(new AxisList(
90+
new Axis("axis", "a", "b")
91+
));
92+
((DefaultMatrixExecutionStrategyImpl) project.getExecutionStrategy())
93+
.setTouchStoneCombinationFilter("axis == 'a'")
94+
;
95+
96+
MatrixBuild build = project.scheduleBuild2(0).get();
97+
assertLogContains("test0 » a completed with result SUCCESS", build);
98+
assertLogContains("test0 » b completed with result SUCCESS", build);
99+
}
100+
86101
@Issue("SECURITY-125")
87102
public void testCombinationFilterSecurity() throws Exception {
88103
MatrixProject project = createMatrixProject();

0 commit comments

Comments
 (0)