Test: Make bazel output useful
With this PR, no-color mode is only enabled on CI.
This reduces the output of `./scion.sh test` to the relevant parts
and makes it useful for humans again.
@@ -267,7 +267,11 @@ py_test() {
}
bazel_test() {
- bazel test //go/... --print_relative_test_log_paths --color no
+ local color_mode="auto"
+ if is_running_in_docker; then
+ color_mode="no"
+ fi
+ bazel test //go/... --print_relative_test_log_paths --color $color_mode
}
cmd_coverage(){
