diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-02-02 10:37:23 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-02-02 12:46:35 +0100 |
commit | 6eebbab5624f213a298afb1baed28cec026b2727 (patch) | |
tree | 87b69b1dd0714afa29460b640ef88b2feb560b9b /tests/derivations.scm | |
parent | 2d53df66de99ece2ec59b8c7221bf4f8ed230ab6 (diff) | |
download | guix-6eebbab5624f213a298afb1baed28cec026b2727.tar.gz |
tests: Further factorize substitute mocks.
* guix/tests.scm (derivation-narinfo): Turn 'nar' into a keyword parameter. Add #:sha256 parameter, and honor it. (call-with-derivation-narinfo): Add #:sha256 and pass it to 'derivation-narinfo'. (with-derivation-narinfo): Extend with support for (sha256 => value). * tests/store.scm ("substitute query"): Use 'with-derivation-narinfo'. ("substitute"): Likewise. ("substitute, corrupt output hash"): Likewise. ("substitute --fallback"): Likewise. * tests/derivations.scm: Remove Emacs local variable.
Diffstat (limited to 'tests/derivations.scm')
-rw-r--r-- | tests/derivations.scm | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/derivations.scm b/tests/derivations.scm index 8e592ab6a1..80aabad3a8 100644 --- a/tests/derivations.scm +++ b/tests/derivations.scm @@ -916,7 +916,3 @@ (exit (= (test-runner-fail-count (test-runner-current)) 0)) - -;; Local Variables: -;; eval: (put 'with-derivation-narinfo 'scheme-indent-function 1) -;; End: |