From 9e59efd9d68b9a99434ecf7644a023a804f90db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 30 Nov 2024 14:51:29 +0200 Subject: [PATCH] ci: Don't consider no runnable tests an error Part-of: --- .gitlab-ci.yml | 8 ++++---- ci/run_windows_tests.ps1 | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 82a00675..62a4b01a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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" diff --git a/ci/run_windows_tests.ps1 b/ci/run_windows_tests.ps1 index c2ef8708..4dd5d9a4 100644 --- a/ci/run_windows_tests.ps1 +++ b/ci/run_windows_tests.ps1 @@ -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