fix(users/Profpatsch/writers): fail on rust test failure

`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.

Change-Id: I0b1b2a06cd0a894e5ac4e77ec25019629ce2c077
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2657
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Profpatsch 2021-03-25 22:48:46 +01:00
parent 3a64d087f2
commit 45f5eb97a6

View file

@ -130,7 +130,7 @@ let
"importas" "out" "out" "importas" "out" "out"
"if" [ "if" [
"pipeline" [ bins.ls "${crate true}/tests" ] "pipeline" [ bins.ls "${crate true}/tests" ]
"forstdin" "test" "forstdin" "-o0" "test"
"importas" "test" "test" "importas" "test" "test"
"${crate true}/tests/$test" "${crate true}/tests/$test"
] ]