Skip to content

Commit fc2f4f1

Browse files
authored
Quote the task name in reproduction line printer (#46266)
Some tasks have `#` for instance that doesn't play well with some shells ( e.x. zsh )
1 parent 091fa88 commit fc2f4f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/test/junit/listeners/ReproduceInfoPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void testFailure(Failure failure) throws Exception {
7979
String task = System.getProperty("tests.task");
8080

8181
// append Gradle test runner test filter string
82-
b.append(task);
82+
b.append("'" + task + "'");
8383
b.append(" --tests \"");
8484
b.append(failure.getDescription().getClassName());
8585
final String methodName = failure.getDescription().getMethodName();

0 commit comments

Comments
 (0)