From b045708353d12cdfc6b705edc09213c657bc3e76 Mon Sep 17 00:00:00 2001 From: Matthew Waters 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: --- 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 9781c6d60..bc6eda2db 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 fd22e85b6..4aac0ddc5 100755 --- a/ci/run-sys-cargo-test.sh +++ b/ci/run-sys-cargo-test.sh @@ -39,5 +39,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 a8e55140d..f3f45fffe 100644 --- a/ci/run_windows_tests.ps1 +++ b/ci/run_windows_tests.ps1 @@ -76,6 +76,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 (!$?) {