From 165a0b1a67b5000fc3d2fcba1936d8595a24eed8 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Thu, 25 Mar 2021 23:02:24 +0100 Subject: fix(profpatsch/write-rust): fail on rust test failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port of . 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. --- pkgs/profpatsch/write-rust.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/profpatsch/write-rust.nix') 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" ] -- cgit 1.4.1