Skip to content

Commit

Permalink
Disable test for experimental_build_transitive_python_runfiles under …
Browse files Browse the repository at this point in the history
…non-Bazel.

This behavior is being disabled within Google, so skip this test when run
under Google's version of blaze.

Work towards bazelbuild#16303

PiperOrigin-RevId: 478838783
Change-Id: Ifa37d86763e57a2fe20eca4cd4e6b4e8206e038c
  • Loading branch information
rickeylev authored and aiuto committed Oct 12, 2022
1 parent 1734440 commit b684e36
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/test/shell/integration/python_test.sh
Expand Up @@ -144,9 +144,15 @@ EOF
# happens is Google has stamping enabled by default, which causes the
# Starlark rule implementation to run an action, which then tries to run
# remotely, but network access is disabled by default, so it times out.
bazel build --experimental_build_transitive_python_runfiles --nostamp :sh-tool
[ -d "bazel-bin/py-tool${EXE_EXT}.runfiles" ] || fail "py_binary runfiles tree not built"
bazel clean

# The upcoming Starlark implementation doesn't support this behavior.
# This feature is planed for removal.
# See https://github.com/bazelbuild/bazel/issues/16303
if [[ "$PRODUCT_NAME" == "bazel" ]]; then
bazel build --experimental_build_transitive_python_runfiles --nostamp :sh-tool
[ -d "bazel-bin/py-tool${EXE_EXT}.runfiles" ] || fail "py_binary runfiles tree not built"
bazel clean
fi
bazel build --noexperimental_build_transitive_python_runfiles --nostamp :sh-tool
[ ! -e "bazel-bin/py-tool${EXE_EXT}.runfiles" ] || fail "py_binary runfiles tree built"
}
Expand Down

0 comments on commit b684e36

Please sign in to comment.