Skip to content

Commit aa11945

Browse files
bazel: Fix coverage test
1 parent 300aecd commit aa11945

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/run-cov

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,11 @@ def main():
11841184
workspace_root = find_workspace_root()
11851185
if workspace_root:
11861186
os.chdir(workspace_root)
1187-
toolchain_bin = find_toolchain_bin()
1187+
# When running inside a Bazel test action (sandboxed), calling `bazel`
1188+
# subprocesses can hang trying to connect back to the parent Bazel server.
1189+
# With --reuse we only need the demangler for real coverage data, not
1190+
# fixture tests, so skip the nested `bazel info` call entirely.
1191+
toolchain_bin = None if args.reuse else find_toolchain_bin()
11881192

11891193
# Get LCOV data
11901194
if not args.reuse:

0 commit comments

Comments
 (0)