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:
Sebastian Dröge 2024-11-30 14:46:50 +02:00
parent 6913e930cd
commit 7701bf6169
3 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ for crate in gstreamer* gstreamer-gl/{egl,wayland,x11}; do
echo "Building and testing $crate with $FEATURES" echo "Building and testing $crate with $FEATURES"
cargo build $CARGO_FLAGS --locked --color=always --manifest-path "$crate/Cargo.toml" $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" new_report_dir="$parent/junit_reports/$crate"
mkdir -p "$new_report_dir" mkdir -p "$new_report_dir"

View file

@ -44,7 +44,7 @@ for crate in gstreamer/sys \
gstreamer-video/sys \ gstreamer-video/sys \
gstreamer-webrtc/sys; do gstreamer-webrtc/sys; do
echo "Testing $crate with --all-features)" 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" new_report_dir="$parent/junit_reports/$crate"
mkdir -p "$new_report_dir" mkdir -p "$new_report_dir"

View file

@ -125,7 +125,7 @@ foreach($features in $features_matrix) {
$env:G_DEBUG="fatal_warnings" $env:G_DEBUG="fatal_warnings"
$env:RUST_BACKTRACE="1" $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 (!$?) { if (!$?) {
Write-Host "Tests failed to for crate: $crate" Write-Host "Tests failed to for crate: $crate"
Exit 1 Exit 1