Sanitize escape sequences when verifying maven output

This commit is contained in:
Ilya Gorbunov
2016-05-18 22:36:58 +03:00
parent 7f5b586e3f
commit bdf80ec747
@@ -6,6 +6,7 @@ void assertBuildLogHasLine(String expectedLine) {
String line;
int i = 0;
while ((line = reader.readLine()) != null) {
line = line.replaceAll("\\u001b[^m]*m", "");
i++;
if (line.equals(expectedLine)) {
print("Expected line was found at line " + i + " of build log: " + "\"" + expectedLine + "\"");