diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-10-09 13:38:16 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2014-10-09 23:51:19 +0200 |
| commit | 4938b0eead9b1f34883c166a16c769a5db03edd9 (patch) | |
| tree | 6dca363040a808a928086c927106dac177efd898 /tests | |
| parent | 9176607ec4cffb85b46e71af49bbc8a330aec5c3 (diff) | |
substitute-binary: Ignore $GUIX_BINARY_SUBSTITUTE_URL.
* guix/scripts/substitute-binary.scm (%cache-url): Ignore the
'GUIX_BINARY_SUBSTITUTE_URL' environment variable.
* test-env.in: Invoke 'guix-daemon' with '--substitute-urls'.
* tests/substitute-binary.scm: Set '%cache-url' to the value of
'GUIX_BINARY_SUBSTITUTE_URL'.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/substitute-binary.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/substitute-binary.scm b/tests/substitute-binary.scm index 8bde7f6aaf4..163cd745936 100644 --- a/tests/substitute-binary.scm +++ b/tests/substitute-binary.scm | |||
| @@ -166,6 +166,9 @@ a file for NARINFO." | |||
| 166 | (define-syntax-rule (with-narinfo narinfo body ...) | 166 | (define-syntax-rule (with-narinfo narinfo body ...) |
| 167 | (call-with-narinfo narinfo (lambda () body ...))) | 167 | (call-with-narinfo narinfo (lambda () body ...))) |
| 168 | 168 | ||
| 169 | ;; Transmit these options to 'guix substitute-binary'. | ||
| 170 | (set! (@@ (guix scripts substitute-binary) %cache-url) | ||
| 171 | (getenv "GUIX_BINARY_SUBSTITUTE_URL")) | ||
| 169 | 172 | ||
| 170 | (test-equal "query narinfo without signature" | 173 | (test-equal "query narinfo without signature" |
| 171 | "" ; not substitutable | 174 | "" ; not substitutable |
