aboutsummaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
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;
}