guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: ci: Add arguments->systems procedure.


From: guix-commits
Subject: 02/03: ci: Add arguments->systems procedure.
Date: Wed, 28 Apr 2021 05:58:48 -0400 (EDT)

mothacehe pushed a commit to branch master
in repository guix.

commit 3034f3d05bdd4e20fe07c329e41f831950d96f01
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Wed Apr 28 11:52:31 2021 +0200

    ci: Add arguments->systems procedure.
    
    * gnu/ci.scm (arguments->systems): New procedure.
    (cuirass-jobs): Use it.
---
 gnu/ci.scm | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnu/ci.scm b/gnu/ci.scm
index 9e4f0a8..58423b6 100644
--- a/gnu/ci.scm
+++ b/gnu/ci.scm
@@ -72,6 +72,8 @@
             %core-packages
             %cross-targets
             channel-source->package
+
+            arguments->systems
             cuirass-jobs))
 
 ;;; Commentary:
@@ -443,6 +445,13 @@ valid."
                              load-manifest)
                     manifests))))
 
+(define (arguments->systems arguments)
+  "Return the systems list from ARGUMENTS."
+  (match (assoc-ref arguments 'systems)
+    (#f              %cuirass-supported-systems)
+    ((lst ...)       lst)
+    ((? string? str) (call-with-input-string str read))))
+
 
 ;;;
 ;;; Cuirass entry point.
@@ -454,10 +463,7 @@ valid."
     (assoc-ref arguments 'subset))
 
   (define systems
-    (match (assoc-ref arguments 'systems)
-      (#f              %cuirass-supported-systems)
-      ((lst ...)       lst)
-      ((? string? str) (call-with-input-string str read))))
+    (arguments->systems arguments))
 
   (define channels
     (let ((channels (assq-ref arguments 'channels)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]