From dbc3b099bde0e0a8b1dffe885ab74818cd2ad59e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 18 Apr 2023 16:44:37 +0300 Subject: tests: if test program fails, cat the log, for CI Sponsored-by: author --- check | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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." -- cgit v1.2.1