mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-02-13 01:25:30 +00:00
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/1467>
This commit is contained in:
parent
ae16a8e276
commit
64cc7d8baf
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (!$?) {
|
||||
|
|
Loading…
Reference in a new issue