mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Option to set bazel's --test_output flag to another value than errors.
This is useful to debug long-running or stuck tests, as with `--test_output=errors` the log is only shown when the test fails or times out. PiperOrigin-RevId: 618908605
This commit is contained in:
committed by
gVisor bot
parent
c3ac1773c2
commit
5c1687045f
+5
-1
@@ -72,14 +72,18 @@ PRE_BAZEL_INIT ?=
|
||||
## to control which flags are passed:
|
||||
##
|
||||
## STARTUP_OPTIONS - Startup options passed to Bazel.
|
||||
## BAZEL_TEST_OUTPUT - Test output policy; shown on failures only by
|
||||
## default, set to "streamed" to show test logs as
|
||||
## they happen.
|
||||
##
|
||||
STARTUP_OPTIONS :=
|
||||
BAZEL_OPTIONS ?=
|
||||
BAZEL_REMOTE_CACHE ?=
|
||||
BAZEL := bazel $(STARTUP_OPTIONS)
|
||||
BASE_OPTIONS := --color=no --curses=no $(BAZEL_REMOTE_CACHE)
|
||||
BAZEL_TEST_OUTPUT ?= errors
|
||||
TEST_OPTIONS += $(BASE_OPTIONS) \
|
||||
--test_output=errors \
|
||||
--test_output=$(BAZEL_TEST_OUTPUT) \
|
||||
--keep_going \
|
||||
--verbose_failures=true \
|
||||
--build_event_json_file=.build_events.json
|
||||
|
||||
Reference in New Issue
Block a user