about summary refs log tree commit diff
path: root/pkgs/profpatsch/write-rust.nix
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-03-25 23:02:24 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-03-25 23:02:24 +0100
commit165a0b1a67b5000fc3d2fcba1936d8595a24eed8 (patch)
tree19664acf7911ae7e1841c3514e66f68be0e04485 /pkgs/profpatsch/write-rust.nix
parent1e6e97836c5281b18929e43877025ff78b689e76 (diff)
fix(profpatsch/write-rust): fail on rust test failure
Port of <https://cl.tvl.fyi/c/depot/+/2657>. Original message:

`forstdin` iterates over the tests in the test directory, and by
default it does *not* fail if an inner loop returns an error, unless
`-o okcodes` is given, a list of exit codes that indicate success.

Now it fails if a loop returns ≠ 0.
Diffstat (limited to 'pkgs/profpatsch/write-rust.nix')
-rw-r--r--pkgs/profpatsch/write-rust.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/profpatsch/write-rust.nix b/pkgs/profpatsch/write-rust.nix
index afbeb80b..adb10950 100644
--- a/pkgs/profpatsch/write-rust.nix
+++ b/pkgs/profpatsch/write-rust.nix
@@ -52,7 +52,7 @@ let
         "importas" "out" "out"
         "if" [
           "pipeline" [ bins.ls "${crate true}/tests" ]
-          "forstdin" "test"
+          "forstdin" "-o0" "test"
           "importas" "test" "test"
           "${crate true}/tests/$test"
         ]