ci: Don't consider no runnable tests an error

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1954>
This commit is contained in:
Sebastian Dröge 2024-11-30 14:51:29 +02:00
parent 0d4f512e8d
commit 9e59efd9d6
2 changed files with 5 additions and 5 deletions

View file

@ -110,15 +110,15 @@ trigger:
- cargo build $CARGO_FLAGS
- RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run --profile=ci $CARGO_FLAGS
- RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run --profile=ci --no-tests=pass $CARGO_FLAGS
- mv "$CI_PROJECT_DIR/target/nextest/ci/junit.xml" "$new_report_dir/junit-tests-default.xml"
- cargo build $CARGO_FLAGS --all-features --exclude gst-plugin-gtk4
- RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run --profile=ci $CARGO_FLAGS --all-features --exclude gst-plugin-gtk4
- RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run --profile=ci --no-tests=pass $CARGO_FLAGS --all-features --exclude gst-plugin-gtk4
- mv "$CI_PROJECT_DIR/target/nextest/ci/junit.xml" "$new_report_dir/junit-tests-all.xml"
- cargo build $CARGO_FLAGS --no-default-features
- RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run --profile=ci $CARGO_FLAGS --no-default-features
- RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run --profile=ci --no-tests=pass $CARGO_FLAGS --no-default-features
- mv "$CI_PROJECT_DIR/target/nextest/ci/junit.xml" "$new_report_dir/junit-tests-no-default.xml"
artifacts:
reports:
@ -400,7 +400,7 @@ coverage:
script:
- CARGO_FLAGS="-j${FDO_CI_CONCURRENT:-$(nproc)} --locked --color=always --all"
- cargo nextest run --profile=ci $CARGO_FLAGS --all-features --exclude gst-plugin-gtk4
- cargo nextest run --profile=ci --no-tests=pass $CARGO_FLAGS --all-features --exclude gst-plugin-gtk4
- new_report_dir="$CI_PROJECT_DIR/junit_reports"
- mkdir -p "$new_report_dir"

View file

@ -48,7 +48,7 @@ function Run-Tests {
$env:G_DEBUG="fatal_warnings"
$env:RUST_BACKTRACE="1"
cargo nextest run $cargo_opts --profile=ci --no-fail-fast --workspace $local_exclude $Features
cargo nextest run $cargo_opts --profile=ci --no-tests=pass --no-fail-fast --workspace $local_exclude $Features
if (!$?) {
Write-Host "Tests failed"
Exit 1