1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

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.
This commit is contained in:
Ludovic Courtès
2017-12-18 22:33:51 +01:00
parent 147d42fc03
commit 3caab236c4
2 changed files with 24 additions and 10 deletions

View File

@@ -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`"