File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,6 +244,15 @@ done
244244#
245245# shellcheck disable=SC2086 # intentional word-splitting: extra_bazel_flags
246246# and targets are each meant to expand to multiple words/patterns.
247+ nested_test_status=0
247248nested_bazel_run test --test_output=errors --cache_test_results=no \
248249 --repo_env=SCALA_VERSION=" ${scala_version} " \
249- ${extra_bazel_flags} -- " ${targets[@]} "
250+ ${extra_bazel_flags} -- " ${targets[@]} " || nested_test_status=" $? "
251+
252+ # TEMPORARY diagnostic for the nested-remote-cache experiment: force this
253+ # sh_test to fail unconditionally so the outer `--test_output=errors` prints
254+ # everything above, including the nested `bazel test`'s own summary line
255+ # ("N remote cache hit") that a passing run would otherwise swallow. Revert
256+ # once the cache-hit question is answered.
257+ echo " DIAGNOSTIC: nested test exit status was ${nested_test_status} ; forcing failure to surface the nested bazel console above." >&2
258+ exit 1
You can’t perform that action at this time.
0 commit comments