diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-13 19:32:17 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-13 19:32:17 +0200 |
commit | 9ffb76f4839baae6cc8370ed1eca2ee4bb44c5fc (patch) | |
tree | 55b0143590bff10bbad4ecfdd0717f6927092c49 /check | |
parent | 3e089045170cfba1c53bb55e8d1bac8734f66d30 (diff) | |
download | obnam-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-x | check | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |