Skip to content

Commit

Permalink
Simplify the node label token macro expression, but still fail
Browse files Browse the repository at this point in the history
Simpler expression fails evaluation without embedded newlines
  • Loading branch information
MarkEWaite committed Dec 21, 2024
1 parent 80ae2a3 commit 49c5d38
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ public void testValidateBuildNoExceptionIfConcurrentBuildsAllowed() throws Excep
@Test
public void testMacroEvaluationExceptionHandling() throws Exception {
String name = "Dummy";
String nodeLabel = "${TEST, arg = \"a \n b \r\n c\"}\n";
// nodeLabel string causes the MacroEvaluationException to occur
String nodeLabel = "${TEST, arg = 'a'}";
NodeLabelBuildParameter nodeLabelBuildParameter = new NodeLabelBuildParameter(name, nodeLabel);

ByteArrayOutputStream logStream = new ByteArrayOutputStream();
Expand Down

0 comments on commit 49c5d38

Please sign in to comment.