[bug#76872,rust-team,7/9] gnu: cargo-build-system: check: Add required cargo test string if null.

Message ID 20250308165105.2398551-7-aaron.covrig.us@ieee.org
State New
Headers
Series Build fixes and minor updates |

Commit Message

Aaron Covrig March 8, 2025, 4:50 p.m. UTC
  * 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(+)
  

Patch

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 <marius@gnu.org>
 ;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2025 Herman Rimm <herman@rimm.ee>
+;;; Copyright © 2025 Aaron Covrig <aaron.covrig.us@ieee.org>
 ;;;
 ;;; 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)))