about summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-06-11 20:10:03 +0200
committerProfpatsch <mail@profpatsch.de>2019-06-12 14:09:42 +0200
commit44f97b56d9cbf99fd22c751834cab731f34bec41 (patch)
tree8f00bd6308a8fcbb3f0b0b8da37e576d01934fcd /pkgs/development/tools/build-managers
parentdd2a0f6c4a396a0484b4097c73c88d5a5e41abd8 (diff)
downloadnixlib-44f97b56d9cbf99fd22c751834cab731f34bec41.tar
nixlib-44f97b56d9cbf99fd22c751834cab731f34bec41.tar.gz
nixlib-44f97b56d9cbf99fd22c751834cab731f34bec41.tar.bz2
nixlib-44f97b56d9cbf99fd22c751834cab731f34bec41.tar.lz
nixlib-44f97b56d9cbf99fd22c751834cab731f34bec41.tar.xz
nixlib-44f97b56d9cbf99fd22c751834cab731f34bec41.tar.zst
nixlib-44f97b56d9cbf99fd22c751834cab731f34bec41.zip
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
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r--pkgs/development/tools/build-managers/bazel/python-bin-path-test.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/development/tools/build-managers/bazel/python-bin-path-test.nix b/pkgs/development/tools/build-managers/bazel/python-bin-path-test.nix
index 54ae154a6207..b78b736e47fa 100644
--- a/pkgs/development/tools/build-managers/bazel/python-bin-path-test.nix
+++ b/pkgs/development/tools/build-managers/bazel/python-bin-path-test.nix
@@ -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
   '';