build: bazel: do not run non-sandbox tests in sandbox

if sandbox parameter of jps_test is false, do not run tests in sandbox at all
it's expected that tests will gradually set sandbox=True and there will be rainbows and fireworks

ref IJI-2653 Bazel: prototype tests running from Bazel

GitOrigin-RevId: e277fbc53d09f77e8f8d8133bd3bc448e4cc3eae
This commit is contained in:
Leonid Shalupov
2025-11-13 16:20:00 +01:00
committed by intellij-monorepo-bot
parent 00785c162c
commit 26a40784c4

View File

@@ -113,6 +113,9 @@ def jps_test(name, jvm_flags = [], runtime_deps = [], args = [], data = [], tags
# so com.intellij.tests.JUnit5BazelRunner.guessBazelWorkspaceDir will find a real workspace root
all_data.append("@community//:intellij.idea.community.main.iml")
if "no-sandbox" not in all_tags:
all_tags.append("no-sandbox")
# https://bazel.build/reference/be/java#java_test
# https://bazel.build/reference/be/common-definitions#common-attributes-tests
java_test(