diff options
author | Denis Pynkin <denis.pynkin@collabora.com> | 2019-07-30 02:39:12 +0300 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-08-01 02:06:47 +0000 |
commit | 3767d87107b74d121738c733ca37767494b6be9c (patch) | |
tree | 95ffee64a2a6bb54be21463f4a5864b42e15f70f /tests/test-pull-summary-sigs.sh | |
parent | 453ce83379364172206945fad78a3cbc2ae51df5 (diff) | |
download | ostree-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-x | tests/test-pull-summary-sigs.sh | 10 |
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 |