[Pkg-gnupg-commit] [gnupg2] 87/205: tests/openpgp: Skip gpgtar test if it has not been built.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed May 11 08:38:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit a883d4c0f8125e809c144ec69e76c9f522102d8f
Author: Justus Winter <justus at g10code.com>
Date: Thu Mar 3 12:22:30 2016 +0100
tests/openpgp: Skip gpgtar test if it has not been built.
* tests/openpgp/gpgtar.test: Check if executable exists.
GnuPG-bug-id: 2261
Signed-off-by: Justus Winter <justus at g10code.com>
---
tests/openpgp/gpgtar.test | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/openpgp/gpgtar.test b/tests/openpgp/gpgtar.test
index d92eeb1..daba514 100755
--- a/tests/openpgp/gpgtar.test
+++ b/tests/openpgp/gpgtar.test
@@ -33,6 +33,12 @@ GPGARGS="$opt_always --no-permission-warning"
GPGTAR="../../tools/gpgtar"
GPGZIP="sh ../../tools/gpg-zip"
+# Skip test if gpgtar has not been built.
+if ! test -x "$GPGTAR"
+then
+ exit 77
+fi
+
# Create, inspect, and extract an archive with the given options.
#
# $1 the tool to test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list