summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-04-18 16:44:37 +0300
committerLars Wirzenius <liw@liw.fi>2023-04-18 16:44:37 +0300
commitdbc3b099bde0e0a8b1dffe885ab74818cd2ad59e (patch)
tree75d4490d19bd3b936690a0f25708be204442fa61
parent007927348dcc533e8380437c0762098c9eb033a4 (diff)
downloadjt2-dbc3b099bde0e0a8b1dffe885ab74818cd2ad59e.tar.gz
tests: if test program fails, cat the log, for CI
Sponsored-by: author
-rwxr-xr-xcheck4
1 files changed, 3 insertions, 1 deletions
diff --git a/check b/check
index 5bac0c9..3151caa 100755
--- a/check
+++ b/check
@@ -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."