Subject: [bug#76872] [PATCH rust-team v3 07/10] gnu: cargo-build-system: check: Add required cargo test string if null.

From: Aaron Covrig <[email-masked]>
Date: Wed, 19 Mar 2025 19:41:34 -0400

* gnu/build/cargo-build-system.scm (check): Add cargo required '--' if
  cargo-test-string is `null`.
---
 guix/build/cargo-build-system.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index 5ef6b23abd..35d97a4d96 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2020 Marius Bakke <[email-masked]>
 ;;; Copyright © 2024 Maxim Cournoyer <[email-masked]>
 ;;; Copyright © 2025 Herman Rimm <[email-masked]>
+;;; Copyright © 2025 Aaron Covrig <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -272,6 +273,9 @@ (define* (check #:key
              ,@(if (member "--" cargo-test-flags)
                    '()
                    '("--"))
+             ,@(if (null? cargo-test-flags)
+                   '("--")
+                   '())
              ,@(if parallel-tests?
                    (list "--test-threads"
                          (number->string (parallel-job-count)))
-- 
2.48.1