From 209140574283aebbabe1d4ee6cb3553c1cb0b68d Mon Sep 17 00:00:00 2001 From: Chris Mckay Date: Tue, 26 Feb 2019 15:34:35 +1000 Subject: [PATCH] Disable picocli ansi when testing (#973) --- .../java/tech/pegasys/pantheon/cli/CommandTestAbstract.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pantheon/src/test/java/tech/pegasys/pantheon/cli/CommandTestAbstract.java b/pantheon/src/test/java/tech/pegasys/pantheon/cli/CommandTestAbstract.java index a14524361b..9c9d107691 100644 --- a/pantheon/src/test/java/tech/pegasys/pantheon/cli/CommandTestAbstract.java +++ b/pantheon/src/test/java/tech/pegasys/pantheon/cli/CommandTestAbstract.java @@ -145,6 +145,8 @@ protected CommandLine.Model.CommandSpec parseCommand(final String... args) { } protected CommandLine.Model.CommandSpec parseCommand(final InputStream in, final String... args) { + // turn off ansi usage globally in picocli + System.setProperty("picocli.ansi", "false"); final TestPantheonCommand pantheonCommand = new TestPantheonCommand(