From bdf80ec747d61389b56153e5bc311958c12e08da Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 18 May 2016 22:36:58 +0300 Subject: [PATCH] Sanitize escape sequences when verifying maven output --- libraries/tools/kotlin-maven-plugin-test/verify-common.bsh | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/tools/kotlin-maven-plugin-test/verify-common.bsh b/libraries/tools/kotlin-maven-plugin-test/verify-common.bsh index 79ee150bfbe..1f1afc149db 100644 --- a/libraries/tools/kotlin-maven-plugin-test/verify-common.bsh +++ b/libraries/tools/kotlin-maven-plugin-test/verify-common.bsh @@ -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 + "\"");