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:
parent
dd2a0f6c4a
commit
44f97b56d9
@ -22,7 +22,7 @@ let
|
|||||||
srcs = [ "lib.py" ],
|
srcs = [ "lib.py" ],
|
||||||
)
|
)
|
||||||
|
|
||||||
py_test(
|
py_binary(
|
||||||
name = "bin",
|
name = "bin",
|
||||||
srcs = [ "bin.py" ],
|
srcs = [ "bin.py" ],
|
||||||
deps = [ ":lib" ],
|
deps = [ ":lib" ],
|
||||||
@ -46,10 +46,9 @@ let
|
|||||||
# about why to create a subdir for the workspace.
|
# about why to create a subdir for the workspace.
|
||||||
cp -r ${workspaceDir} wd && chmod u+w wd && cd wd
|
cp -r ${workspaceDir} wd && chmod u+w wd && cd wd
|
||||||
${bazel}/bin/bazel \
|
${bazel}/bin/bazel \
|
||||||
test \
|
run \
|
||||||
--test_output=errors \
|
|
||||||
--host_javabase='@local_jdk//:jdk' \
|
--host_javabase='@local_jdk//:jdk' \
|
||||||
//...
|
//python:bin
|
||||||
|
|
||||||
touch $out
|
touch $out
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user