Skip to content

Commit

Permalink
Fix test_env to use build, fixing analysis caching (#568)
Browse files Browse the repository at this point in the history
Per https://docs.bazel.build/versions/master/guide.html#option-defaults, test inherits from build, thus why this fixes caching.

The issue can be observed with `bazel build :all && bazel test :all`, the line:
`INFO: Build option --test_env has changed, discarding analysis cache.`
  • Loading branch information
jonmeow authored Jun 8, 2021
1 parent 94bb8ec commit 4a0202d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ build:fuzzer --features=fuzzer

# Always allow tests to symbolize themselves with whatever `llvm-symbolize` is
# in the users environment.
test --test_env=ASAN_SYMBOLIZER_PATH
build --test_env=ASAN_SYMBOLIZER_PATH

# Force actions to have a UTF-8 language encoding.
# TODO: Need to investigate what this should be on Windows, but at least for
Expand Down

0 comments on commit 4a0202d

Please sign in to comment.