mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
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" ],
|
||||
)
|
||||
|
||||
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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user