summaryrefslogtreecommitdiff
path: root/tests/test-pull-summary-sigs.sh
diff options
context:
space:
mode:
authorDenis Pynkin <denis.pynkin@collabora.com>2019-07-30 02:39:12 +0300
committerAtomic Bot <atomic-devel@projectatomic.io>2019-08-01 02:06:47 +0000
commit3767d87107b74d121738c733ca37767494b6be9c (patch)
tree95ffee64a2a6bb54be21463f4a5864b42e15f70f /tests/test-pull-summary-sigs.sh
parent453ce83379364172206945fad78a3cbc2ae51df5 (diff)
downloadostree-3767d87107b74d121738c733ca37767494b6be9c.tar.gz
tests/gpg: fix GPG-dependent shell tests if no GPG support
Skip tests or run them without GPG-related functionality if GPGME wasn't enabled in a build time. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> Closes: #1889 Approved by: cgwalters
Diffstat (limited to 'tests/test-pull-summary-sigs.sh')
-rwxr-xr-xtests/test-pull-summary-sigs.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test-pull-summary-sigs.sh b/tests/test-pull-summary-sigs.sh
index 0b6b806c..821ae953 100755
--- a/tests/test-pull-summary-sigs.sh
+++ b/tests/test-pull-summary-sigs.sh
@@ -23,9 +23,15 @@ set -euo pipefail
. $(dirname $0)/libtest.sh
-echo "1..10"
+COMMIT_SIGN=""
+if has_gpgme; then
+ COMMIT_SIGN="--gpg-homedir=${TEST_GPG_KEYHOME} --gpg-sign=${TEST_GPG_KEYID_1}"
+ echo "1..10"
+else
+ # Only one test don't need GPG support
+ echo "1..1"
+fi
-COMMIT_SIGN="--gpg-homedir=${TEST_GPG_KEYHOME} --gpg-sign=${TEST_GPG_KEYID_1}"
setup_fake_remote_repo1 "archive" "${COMMIT_SIGN}"
# Now, setup multiple branches