mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-18 06:06:33 +00:00
ci: Don't consider no runnable tests an error
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1604>
This commit is contained in:
parent
6913e930cd
commit
7701bf6169
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ for crate in gstreamer* gstreamer-gl/{egl,wayland,x11}; do
|
|||
echo "Building and testing $crate with $FEATURES"
|
||||
|
||||
cargo build $CARGO_FLAGS --locked --color=always --manifest-path "$crate/Cargo.toml" $FEATURES
|
||||
RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run --profile=ci $CARGO_FLAGS --color=always --manifest-path "$crate/Cargo.toml" $FEATURES
|
||||
RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run --profile=ci --no-tests=pass $CARGO_FLAGS --color=always --manifest-path "$crate/Cargo.toml" $FEATURES
|
||||
|
||||
new_report_dir="$parent/junit_reports/$crate"
|
||||
mkdir -p "$new_report_dir"
|
||||
|
|
|
@ -44,7 +44,7 @@ for crate in gstreamer/sys \
|
|||
gstreamer-video/sys \
|
||||
gstreamer-webrtc/sys; do
|
||||
echo "Testing $crate with --all-features)"
|
||||
RUST_BACKTRACE=1 cargo nextest run --profile ci $CARGO_FLAGS --locked --color=always --manifest-path $crate/Cargo.toml --all-features
|
||||
RUST_BACKTRACE=1 cargo nextest run --profile ci --no-tests=pass $CARGO_FLAGS --locked --color=always --manifest-path $crate/Cargo.toml --all-features
|
||||
|
||||
new_report_dir="$parent/junit_reports/$crate"
|
||||
mkdir -p "$new_report_dir"
|
||||
|
|
|
@ -125,7 +125,7 @@ foreach($features in $features_matrix) {
|
|||
|
||||
$env:G_DEBUG="fatal_warnings"
|
||||
$env:RUST_BACKTRACE="1"
|
||||
cargo nextest run --profile=ci --no-fail-fast $cargo_opts --manifest-path $crate/Cargo.toml $env:LocalFeatures
|
||||
cargo nextest run --profile=ci --no-fail-fast --no-tests=pass $cargo_opts --manifest-path $crate/Cargo.toml $env:LocalFeatures
|
||||
if (!$?) {
|
||||
Write-Host "Tests failed to for crate: $crate"
|
||||
Exit 1
|
||||
|
|
Loading…
Reference in a new issue