From 46edf63bd630f5e3f3eb31b7d4602caa317da075 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 26 Jan 2018 14:27:15 +0000 Subject: COMPMID-765: Fixed output accessor in LeNet example, and disabled colors when not running in a terminal Change-Id: I4ec90803c5dc41b0cee05c36113ae3f189564d58 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/117831 Reviewed-by: Georgios Pinitas Tested-by: Jenkins --- tests/framework/command_line/CommonOptions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/framework') diff --git a/tests/framework/command_line/CommonOptions.cpp b/tests/framework/command_line/CommonOptions.cpp index 631981be3d..e0b93f6830 100644 --- a/tests/framework/command_line/CommonOptions.cpp +++ b/tests/framework/command_line/CommonOptions.cpp @@ -26,6 +26,7 @@ #include "../Framework.h" #include "../printers/Printers.h" #include "CommandLineParser.h" +#include namespace arm_compute { @@ -42,7 +43,7 @@ CommonOptions::CommonOptions(CommandLineParser &parser) log_file(parser.add_option>("log-file")), log_level(), throw_errors(parser.add_option("throw-errors")), - color_output(parser.add_option("color-output", true)), + color_output(parser.add_option("color-output", isatty(STDOUT_FILENO))), // Only enable colors by default if we're running in a terminal pretty_console(parser.add_option("pretty-console", false)), json_file(parser.add_option>("json-file")), pretty_file(parser.add_option>("pretty-file")), -- cgit v1.2.1