我希望我没有误读这个问题,但这听起来像是你在找的
--test_timeout
选项:
--test_timeout
(a single integer or comma-separated list of 4 integers; default: "-1")
Override the default test timeout values for test timeouts (in secs). If a
single positive integer value is specified it will override all
categories. If 4 comma-separated integers are specified, they will
override the timeouts for short, moderate, long and eternal (in that
order). In either form, a value of -1 tells blaze to use its default
timeouts for that category.
如果每次都要使用相同的选项,可以使用
bazelrc
.