summaryrefslogtreecommitdiff
path: root/tests/guix-build-branch.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2018-11-30 16:41:22 +0100
committerLudovic Courtès <ludo@gnu.org>2018-11-30 17:03:04 +0100
commita3d77c51bc8f641c12989e18dc5e03add776f87e (patch)
treea3f5755b17a943a66c9bc24f7a7909fd2fd5d571 /tests/guix-build-branch.sh
parentb18f7234aac9eb42097c1b4cda7efe0be5aab132 (diff)
downloadpatches-a3d77c51bc8f641c12989e18dc5e03add776f87e.tar
patches-a3d77c51bc8f641c12989e18dc5e03add776f87e.tar.gz
git: Nicely report '--with-commit' errors.
* guix/git.scm (latest-repository-commit*): Rewrite to catch 'git-error'. * po/guix/POTFILES.in: Add guix/git.scm. * tests/guix-build-branch.sh: Test --with-commit errors.
Diffstat (limited to 'tests/guix-build-branch.sh')
-rw-r--r--tests/guix-build-branch.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/guix-build-branch.sh b/tests/guix-build-branch.sh
index 89c1a3cce0..e64782c831 100644
--- a/tests/guix-build-branch.sh
+++ b/tests/guix-build-branch.sh
@@ -51,3 +51,6 @@ v0_1_0_drv="`guix build guix --with-commit=guile-gcrypt=9e3eacdec1d -d`"
guix gc -R "$v0_1_0_drv" | grep guile-gcrypt-git.9e3eacd
test "$v0_1_0_drv" != "$latest_drv"
test "$v0_1_0_drv" != "$orig_drv"
+
+if guix build guix --with-commit=guile-gcrypt=000 -d
+then false; else true; fi