bazel: move the python test to py_binary

`py_test` tries to download unnecessary dependencies at runtime. We
can just as well run it to check the assertion.

Upstream issue: https://github.com/bazelbuild/bazel/issues/8575
This commit is contained in:
Profpatsch 2019-06-11 20:10:03 +02:00
parent dd2a0f6c4a
commit 44f97b56d9

View File

@ -22,7 +22,7 @@ let
srcs = [ "lib.py" ],
)
py_test(
py_binary(
name = "bin",
srcs = [ "bin.py" ],
deps = [ ":lib" ],
@ -46,10 +46,9 @@ let
# about why to create a subdir for the workspace.
cp -r ${workspaceDir} wd && chmod u+w wd && cd wd
${bazel}/bin/bazel \
test \
--test_output=errors \
run \
--host_javabase='@local_jdk//:jdk' \
//...
//python:bin
touch $out
'';