From bf88ddb2d5ca698ae3575c0a35582d94bcea2207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 29 Nov 2022 14:23:45 +0200 Subject: [PATCH] ci/test: fail on error --- ci/test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/test b/ci/test index 6b2895c..a18f967 100755 --- a/ci/test +++ b/ci/test @@ -5,11 +5,12 @@ bazel test "$@" ... # /tmp/bazel-zig-cc should be empty for the test below to be valid. # This test ensures that github.com/ziglang/zig/issues/13050 does not -# regress from a "very high"-level perspective. +# regress find /tmp/bazel-zig-cc -name mutex_destructor.o -execdir file {} \; | \ sort | uniq -c | sort -rn > /tmp/got_cache diff -u ci/testdata/want_cache /tmp/got_cache || { >&2 echo "ERROR: unexpected artifacts." >&2 echo "Was /tmp/bazel-zig-cc empty before the test?" + exit 1 }