Skip to content

Commit

Permalink
Skip testing building py_library for Python 2 in python_stub_test.
Browse files Browse the repository at this point in the history
The skip is based on product name because Bazel isn't yet using the Starlark
implementation.

Work towards #15897

PiperOrigin-RevId: 482060695
Change-Id: Idfbd615b55f805ecc2a9f4ba83e23df21ce94189
  • Loading branch information
rickeylev authored and copybara-github committed Oct 19, 2022
1 parent cee1a58 commit 0564b83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/shell/integration/python_stub_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,11 @@ py_library(
EOF
touch test/lib2.py test/lib3.py

bazel build --python_version=PY2 //test:* \
&> $TEST_log || fail "bazel build failed"
# Python 2 support dropped in Google builds
if [[ "$PRODUCT_NAME" == "bazel" ]]; then
bazel build --python_version=PY2 //test:* \
&> $TEST_log || fail "bazel build failed"
fi
bazel build --python_version=PY3 //test:* \
&> $TEST_log || fail "bazel build failed"
}
Expand Down

0 comments on commit 0564b83

Please sign in to comment.