aboutsummaryrefslogtreecommitdiff
path: root/tests/ui.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-02-26 00:00:04 +0100
committerLudovic Courtès <ludo@gnu.org>2015-02-26 00:04:36 +0100
commitcf6ce3e6ef96abc36a40293b2d9f732d462d2a94 (patch)
treec49727c6364ecb723d2456239eaf3177270d1035 /tests/ui.scm
parentb3f213893b67620840597213b8f46af1ddfb4934 (diff)
downloadgnu-guix-cf6ce3e6ef96abc36a40293b2d9f732d462d2a94.tar
gnu-guix-cf6ce3e6ef96abc36a40293b2d9f732d462d2a94.tar.gz
ui: Honor --no-* options passed via $GUIX_BUILD_OPTIONS.
Reported by Alex Kost <alezost@gmail.com> at <http://lists.gnu.org/archive/html/guix-devel/2015-02/msg00702.html>. * guix/ui.scm (parse-command-line)[parse-options-from]: Add 'seeds' parameter. Thread the result of the first 'parse-options-from' call to the second.
Diffstat (limited to 'tests/ui.scm')
-rw-r--r--tests/ui.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui.scm b/tests/ui.scm
index c71fc71cc1..1478fe213e 100644
--- a/tests/ui.scm
+++ b/tests/ui.scm
@@ -82,6 +82,15 @@ interface, and powerful string processing.")
%standard-build-options
(list '()))))
+(test-equal "parse-command-line and --no options"
+ '((argument . "foo")
+ (substitutes? . #f)) ;takes precedence
+
+ (with-environment-variable "GUIX_BUILD_OPTIONS" "--no-substitutes"
+ (parse-command-line '("foo")
+ %standard-build-options
+ (list '((substitutes? . #t))))))
+
(test-assert "fill-paragraph"
(every (lambda (column)
(every (lambda (width)