diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-04-18 16:44:37 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-04-18 16:44:37 +0300 |
commit | dbc3b099bde0e0a8b1dffe885ab74818cd2ad59e (patch) | |
tree | 75d4490d19bd3b936690a0f25708be204442fa61 | |
parent | 007927348dcc533e8380437c0762098c9eb033a4 (diff) | |
download | jt2-dbc3b099bde0e0a8b1dffe885ab74818cd2ad59e.tar.gz |
tests: if test program fails, cat the log, for CI
Sponsored-by: author
-rwxr-xr-x | check | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -35,6 +35,8 @@ $hideok subplot docgen jt.subplot --output jt.html $hideok subplot codegen jt.subplot --output test.py rm -f test.log target="$(cargo metadata --format-version=1 | jq -r .target_directory)" -$hideok python3 test.py --log test.log --env "CARGO_TARGET_DIR=$target" "$@" +if ! $hideok python3 test.py --log test.log --env "CARGO_TARGET_DIR=$target" "$@"; then + cat test.log +fi echo "Everything seems to be in order." |