bc1781085b
Currently, the standard error and output streams of the child commands invoked by 'meson test' are redirected to a separate log file. When the tests fail, it's difficult, or maybe even impossible, to access this file from the Zuul CI, and all that can be seen is something like: 1/7 shellcheck src/go-build-wrapper OK 0.04s 2/7 shellcheck profile.d/toolbox.sh FAIL 0.06s exit status 1 >>> MALLOC_PERTURB_=241 /usr/bin/shellcheck --shell=sh /home/zuul-worker/src/github.com/containers/toolbox/builddir/../profile.d/toolbox.sh 3/7 go fmt FAIL 0.05s exit status 1 >>> MALLOC_PERTURB_=209 /usr/bin/python3 /home/zuul-worker/src/github.com/containers/toolbox/src/meson_go_fmt.py /home/zuul-worker/src/github.com/containers/toolbox/src 4/7 codespell FAIL 0.31s exit status 65 >>> MALLOC_PERTURB_=180 /usr/bin/codespell --check-filenames --check-hidden --context 3 --exclude-file /home/zuul-worker/src/github.com/containers/toolbox/.codespellexcludefile --skip /home/zuul-worker/src/github.com/containers/toolbox/builddir --skip /home/zuul-worker/src/github.com/containers/toolbox/.git --skip /home/zuul-worker/src/github.com/containers/toolbox/test/system/libs/bats-assert --skip /home/zuul-worker/src/github.com/containers/toolbox/test/system/libs/bats-support /home/zuul-worker/src/github.com/containers/toolbox 5/7 shellcheck toolbox (deprecated) FAIL 1.09s exit status 1 >>> MALLOC_PERTURB_=233 /usr/bin/shellcheck /home/zuul-worker/src/github.com/containers/toolbox/builddir/../toolbox 6/7 go test OK 1.89s 7/7 go vet OK 17.60s This doesn't have enough information to understand what caused the tests to fail on non-interactive CI environments. Not redirecting the standard error and output streams of the child commands invoked by 'meson test' will readily reveal more details about the test failures and remove the need to find the log file created by Meson. https://github.com/containers/toolbox/pull/1171
25 lines
774 B
YAML
25 lines
774 B
YAML
#
|
||
# Copyright © 2021 – 2022 Red Hat, Inc.
|
||
#
|
||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
# you may not use this file except in compliance with the License.
|
||
# You may obtain a copy of the License at
|
||
#
|
||
# http://www.apache.org/licenses/LICENSE-2.0
|
||
#
|
||
# Unless required by applicable law or agreed to in writing, software
|
||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
# See the License for the specific language governing permissions and
|
||
# limitations under the License.
|
||
#
|
||
|
||
---
|
||
- hosts: all
|
||
tasks:
|
||
- include_tasks: build.yaml
|
||
|
||
- name: Test
|
||
command: meson test -C builddir --verbose
|
||
args:
|
||
chdir: '{{ zuul.project.src_dir }}'
|