From d584b7ae3b4ecd0ce63dc55b0b51cf86b9a0fcaa Mon Sep 17 00:00:00 2001 From: Matthew Waters <matthew@centricular.com> Date: Thu, 6 Jun 2024 21:50:35 +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: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1454> --- ci/run-cargo-test.sh | 2 +- ci/run-sys-cargo-test.sh | 2 +- ci/run_windows_tests.ps1 | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/run-cargo-test.sh b/ci/run-cargo-test.sh index 9781c6d603..bc6eda2db7 100755 --- a/ci/run-cargo-test.sh +++ b/ci/run-cargo-test.sh @@ -16,7 +16,7 @@ for crate in gstreamer* gstreamer-gl/{egl,wayland,x11}; do echo "Building and testing $crate with $FEATURES" cargo build --locked --color=always --manifest-path "$crate/Cargo.toml" $FEATURES - G_DEBUG=fatal_warnings cargo test --color=always --manifest-path "$crate/Cargo.toml" $FEATURES + RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo test --color=always --manifest-path "$crate/Cargo.toml" $FEATURES fi done diff --git a/ci/run-sys-cargo-test.sh b/ci/run-sys-cargo-test.sh index 3a89dcb83e..16394c117d 100755 --- a/ci/run-sys-cargo-test.sh +++ b/ci/run-sys-cargo-test.sh @@ -33,5 +33,5 @@ for crate in gstreamer/sys \ gstreamer-video/sys \ gstreamer-webrtc/sys; do echo "Testing $crate with --all-features)" - cargo test --locked --color=always --manifest-path $crate/Cargo.toml --all-features + RUST_BACKTRACE=1 cargo test --locked --color=always --manifest-path $crate/Cargo.toml --all-features done diff --git a/ci/run_windows_tests.ps1 b/ci/run_windows_tests.ps1 index 3bf04de5dc..1e451cc9c7 100644 --- a/ci/run_windows_tests.ps1 +++ b/ci/run_windows_tests.ps1 @@ -78,6 +78,7 @@ foreach($features in $features_matrix) { } $env:G_DEBUG="fatal_warnings" + $env:RUST_BACKTRACE="1" cargo test --no-fail-fast --color=always --manifest-path $crate/Cargo.toml $env:LocalFeatures if (!$?) { -- GitLab