Set --nocache_test_results to runtime tests

If not set, the cached result is used even when runtime options
are changed, because they are not visible to blaze/bazel.

PiperOrigin-RevId: 348074339
This commit is contained in:
Fabricio Voznika 2020-12-17 12:40:26 -08:00 committed by gVisor bot
parent 1ea241e4cc
commit eeee055d60
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ configure = $(call configure_noreload,$(1),$(2)) && $(reload_docker)
# Helpers for above. Requires $(RUNTIME_BIN) dependency.
install_runtime = $(call configure,$(RUNTIME),$(1) --TESTONLY-test-name-env=RUNSC_TEST_NAME)
test_runtime = $(call test,--test_arg=--runtime=$(RUNTIME) $(PARTITIONS) $(1))
# Don't use cached results, otherwise multiple runs using different runtimes
# are skipped.
test_runtime = $(call test,--test_arg=--runtime=$(RUNTIME) --nocache_test_results $(PARTITIONS) $(1))
refresh: $(RUNTIME_BIN) ## Updates the runtime binary.
.PHONY: refresh