Skip to content

Commit f61a08d

Browse files
rickeylevcopybara-github
authored andcommitted
Disable test for experimental_build_transitive_python_runfiles under non-Bazel.
This behavior is being disabled within Google, so skip this test when run under Google's version of blaze. Work towards #16303 PiperOrigin-RevId: 478838783 Change-Id: Ifa37d86763e57a2fe20eca4cd4e6b4e8206e038c
1 parent 86f734d commit f61a08d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/test/shell/integration/python_test.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,15 @@ EOF
144144
# happens is Google has stamping enabled by default, which causes the
145145
# Starlark rule implementation to run an action, which then tries to run
146146
# remotely, but network access is disabled by default, so it times out.
147-
bazel build --experimental_build_transitive_python_runfiles --nostamp :sh-tool
148-
[ -d "bazel-bin/py-tool${EXE_EXT}.runfiles" ] || fail "py_binary runfiles tree not built"
149-
bazel clean
147+
148+
# The upcoming Starlark implementation doesn't support this behavior.
149+
# This feature is planed for removal.
150+
# See https://github.com/bazelbuild/bazel/issues/16303
151+
if [[ "$PRODUCT_NAME" == "bazel" ]]; then
152+
bazel build --experimental_build_transitive_python_runfiles --nostamp :sh-tool
153+
[ -d "bazel-bin/py-tool${EXE_EXT}.runfiles" ] || fail "py_binary runfiles tree not built"
154+
bazel clean
155+
fi
150156
bazel build --noexperimental_build_transitive_python_runfiles --nostamp :sh-tool
151157
[ ! -e "bazel-bin/py-tool${EXE_EXT}.runfiles" ] || fail "py_binary runfiles tree built"
152158
}

0 commit comments

Comments
 (0)