Skip to content

Commit

Permalink
Strip ANSI from build.log text: https://stackoverflow.com/a/25189932
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Nov 14, 2019
1 parent 64583e3 commit 02bafb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/it/beta-fail/postbuild.groovy
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/it/undefined-java-level/postbuild.groovy
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 02bafb0

Please sign in to comment.