aboutsummaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-11-20 18:32:35 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit77f0f879f8a9371e50fb1c5b2b5f7252b839883c (patch)
tree848388573b891758f503f72d754a3cc8163f0f98 /tests/main.cpp
parent3e80c7fa601d5996e8ada3b2f6c69327f066ec17 (diff)
downloadComputeLibrary-77f0f879f8a9371e50fb1c5b2b5f7252b839883c.tar.gz
COMPMID-621: Disable colours when printing to file
Change-Id: I9b49a505201bfd6e0c4a40ad64ce302cbc3f2cf3 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/109907 Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 00bfda1b37..73c87b5459 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -182,7 +182,10 @@ int main(int argc, char **argv)
break;
case framework::LogFormat::PRETTY:
default:
- printer = support::cpp14::make_unique<framework::PrettyPrinter>();
+ auto pretty_printer = support::cpp14::make_unique<framework::PrettyPrinter>();
+ // Don't use colours if we print to a file:
+ pretty_printer->set_color_output((!log_file->is_set()) && color_output->value());
+ printer = std::move(pretty_printer);
break;
}