summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-13 19:32:17 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-13 19:32:17 +0200
commit9ffb76f4839baae6cc8370ed1eca2ee4bb44c5fc (patch)
tree55b0143590bff10bbad4ecfdd0717f6927092c49 /check
parent3e089045170cfba1c53bb55e8d1bac8734f66d30 (diff)
downloadobnam-benchmark-9ffb76f4839baae6cc8370ed1eca2ee4bb44c5fc.tar.gz
tests(check): if test.py fails, output test.log
This makes it easier to see in a CI situation. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'check')
-rwxr-xr-xcheck5
1 files changed, 4 insertions, 1 deletions
diff --git a/check b/check
index 9056788..ea6f30d 100755
--- a/check
+++ b/check
@@ -13,6 +13,9 @@ cargo build --all-targets -q $offline
chronic cargo test -q $offline
subplot docgen obnam-benchmark.subplot -o obnam-benchmark.html
subplot codegen obnam-benchmark.subplot -o test.py
-chronic python3 test.py --log test.log "$@"
+if ! chronic python3 test.py --log test.log "$@"; then
+ cat test.log
+ exit 1
+fi
cargo fmt -- --check
echo A-OK