diff --git a/src/it/beta-fail/postbuild.groovy b/src/it/beta-fail/postbuild.groovy index 1854c1268d..66b0092688 100644 --- a/src/it/beta-fail/postbuild.groovy +++ b/src/it/beta-fail/postbuild.groovy @@ -1,3 +1,3 @@ -assert new File(basedir, 'build.log').text.contains('[ERROR] downstream/Caller:5 upstream/Api.experimental()V is still in beta') +assert new File(basedir, 'build.log').text.replaceAll(/\e\[[\d;]*[^\d;]/, '').contains('[ERROR] downstream/Caller:5 upstream/Api.experimental()V is still in beta') return true diff --git a/src/it/undefined-java-level/postbuild.groovy b/src/it/undefined-java-level/postbuild.groovy index 3d84add3c2..68c1448db5 100644 --- a/src/it/undefined-java-level/postbuild.groovy +++ b/src/it/undefined-java-level/postbuild.groovy @@ -1,3 +1,3 @@ -assert new File(basedir, 'build.log').text.contains('java.lang.IllegalArgumentException: Unknown JDK version given. Should be something like "1.7"') +assert new File(basedir, 'build.log').text.replaceAll(/\e\[[\d;]*[^\d;]/, '').contains('java.lang.IllegalArgumentException: Unknown JDK version given. Should be something like "1.7"') return true