diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-12-18 22:33:51 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-12-18 23:17:30 +0100 |
commit | 3caab236c49012643ab46afd7e82a287ec413ee8 (patch) | |
tree | 53a3f2d81cd2db5aaa0cbb19321c3230170a64c0 /tests | |
parent | 147d42fc0362160baf50bdc71ab918c1e1db2f88 (diff) | |
download | gnu-guix-3caab236c49012643ab46afd7e82a287ec413ee8.tar gnu-guix-3caab236c49012643ab46afd7e82a287ec413ee8.tar.gz |
guix gc: '--verify=foo' is reported as an error.
Fixes <https://bugs.gnu.org/29761>.
Reported by Martin Castillo <castilma@uni-bremen.de>.
* guix/scripts/gc.scm (argument->verify-options): New procedure.
(%options) ["verify"]: Adjust to use it.
* tests/guix-gc.sh: Add test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guix-gc.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/guix-gc.sh b/tests/guix-gc.sh index 57c5e7dd61..efbc7e759c 100644 --- a/tests/guix-gc.sh +++ b/tests/guix-gc.sh @@ -39,6 +39,9 @@ do if guix gc $option whatever; then false; else true; fi done +# This should fail. +if guix gc --verify=foo; then false; else true; fi + # Check the references of a .drv. drv="`guix build guile-bootstrap -d`" out="`guix build guile-bootstrap`" |