diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2022-01-13 08:01:17 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-13 12:27:25 +0100 |
commit | 4e1ab496ae58e21b233ed7cd7fea3c8f495ef1e4 (patch) | |
tree | d0df52813fdccd09376e1fac1f2dca2ecc924e1a /.github/workflows/build_test.sh | |
parent | po: Translated using Weblate (Portuguese) (diff) | |
download | systemd-4e1ab496ae58e21b233ed7cd7fea3c8f495ef1e4.tar.xz systemd-4e1ab496ae58e21b233ed7cd7fea3c8f495ef1e4.zip |
{build|unit}-test: show meson-log.txt when meson fails
to make it easier to figure out why it fails.
For example in https://github.com/systemd/systemd/runs/4799774735?check_suite_focus=true
it failed with
```
meson.build:1003:8: ERROR: Command "/usr/bin/clang -print-targets" failed with status 1.
A full log can be found at /home/runner/work/systemd/systemd/build/meson-logs/meson-log.txt
Error: Process completed with exit code 1.
```
and it wasn't clear what exactly happened there.
Diffstat (limited to '.github/workflows/build_test.sh')
-rwxr-xr-x | .github/workflows/build_test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/build_test.sh b/.github/workflows/build_test.sh index cd5fcac550..9dc53a8c9b 100755 --- a/.github/workflows/build_test.sh +++ b/.github/workflows/build_test.sh @@ -125,10 +125,11 @@ for args in "${ARGS[@]}"; do meson -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true --werror \ -Dcryptolib="${CRYPTOLIB:?}" $args build; then + cat build/meson-logs/meson-log.txt fatal "meson failed with $args" fi - if ! meson compile -C build; then + if ! meson compile -C build -v; then fatal "'meson compile' failed with $args" fi |