On Mon, 10 Mar 2025 at 09:25, Daniel P. Berrangé <berra...@redhat.com> wrote: > > On Mon, Mar 10, 2025 at 09:21:37AM +0000, Peter Maydell wrote: > > On Wed, 29 Jan 2025 at 08:21, Paolo Bonzini <pbonz...@redhat.com> wrote: > > > > > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > > > --- > > > .gitlab-ci.d/buildtest-template.yml | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/.gitlab-ci.d/buildtest-template.yml > > > b/.gitlab-ci.d/buildtest-template.yml > > > index 39da7698b09..4cc19239319 100644 > > > --- a/.gitlab-ci.d/buildtest-template.yml > > > +++ b/.gitlab-ci.d/buildtest-template.yml > > > @@ -63,6 +63,7 @@ > > > stage: test > > > image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG > > > script: > > > + - export RUST_BACKTRACE=1 > > > - source scripts/ci/gitlab-ci-section > > > - section_start buildenv "Setting up to run tests" > > > - scripts/git-submodule.sh update roms/SLOF > > > -- > > > > This will only add the rust backtraces when the tests > > are run from the CI logs, not when you locally run > > "make check" or similar. There's probably a better place > > to put this... > > Meson's 'test()' command accepts env variables, but it'll be somewhat > tedious to add the same env to all case where we use test. Might want > to define a common 'testenv' set at the top level meson.build and then > reference it from every 'test()', unless meson has built-in support > for globally applied env vars that I'm missing.
Or we could set it in tests/Makefile.include :-) -- PMM