aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-02-17 14:25:43 +0100
committerLudovic Courtès <ludo@gnu.org>2021-02-23 15:24:48 +0100
commitb57de6fea126f907a873ae14ad8b32dc32456e8e (patch)
treea8db88484cab66eeb9ead5c6e4092278c5aebeb0 /tests
parenta26006ff72746a49dde6d548a8687bf55e9d4d3a (diff)
downloadguix-b57de6fea126f907a873ae14ad8b32dc32456e8e.tar
guix-b57de6fea126f907a873ae14ad8b32dc32456e8e.tar.gz
gexp: Micro-optimize 'gexp->sexp' and 'lower-inputs'.
* guix/gexp.scm (lower-inputs, gexp->sexp): Change keyword parameters to positional parameters. Adjust callers accordingly. * tests/gexp.scm (gexp->sexp*, "gexp->file"): Adjust accordingly.
Diffstat (limited to 'tests')
-rw-r--r--tests/gexp.scm5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/gexp.scm b/tests/gexp.scm
index 0bd1237316..a30d0ff6b4 100644
--- a/tests/gexp.scm
+++ b/tests/gexp.scm
@@ -57,8 +57,7 @@
(apply (@@ (guix gexp) gexp->sexp) x))
(define* (gexp->sexp* exp #:optional target)
- (run-with-store %store (gexp->sexp exp
- #:target target)
+ (run-with-store %store (gexp->sexp exp (%current-system) target)
#:guile-for-build (%guile-for-build)))
(define (gexp-input->tuple input)
@@ -540,7 +539,7 @@
(test-assertm "gexp->file"
(mlet* %store-monad ((exp -> (gexp (display (ungexp %bootstrap-guile))))
(guile (package-file %bootstrap-guile))
- (sexp (gexp->sexp exp))
+ (sexp (gexp->sexp exp (%current-system) #f))
(drv (gexp->file "foo" exp))
(out -> (derivation->output-path drv))
(done (built-derivations (list drv)))