From 1e964233c64837244116f192fec48834fd05335b Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 6 Jun 2024 21:45:59 +1000 Subject: [PATCH] ci: run tests with RUST_BACKTRACE=1 Produces backtraces which would allow some initial debugging on hard to find issues. Part-of: --- .gitlab-ci.yml | 6 +++--- ci/run_windows_tests.ps1 | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a8266281..d034c3a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -99,11 +99,11 @@ trigger: - rustc --version - cargo build --locked --color=always --workspace --all-targets - - G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets + - RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets - cargo build --locked --color=always --workspace --all-targets --all-features --exclude gst-plugin-gtk4 - - G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets --all-features --exclude gst-plugin-gtk4 + - RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets --all-features --exclude gst-plugin-gtk4 - cargo build --locked --color=always --workspace --all-targets --no-default-features - - G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets --no-default-features + - RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets --no-default-features test msrv: extends: diff --git a/ci/run_windows_tests.ps1 b/ci/run_windows_tests.ps1 index 14e50645..fd793b28 100644 --- a/ci/run_windows_tests.ps1 +++ b/ci/run_windows_tests.ps1 @@ -36,6 +36,7 @@ function Run-Tests { } $env:G_DEBUG="fatal_warnings" + $env:RUST_BACKTRACE="1" cargo test --no-fail-fast --color=always --workspace $local_exclude --all-targets $Features if (!$?) {