From cd93780d974866069793932c8437ba4cf83ec3a7 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 27 Apr 2015 11:15:40 +0200 Subject: show: add option --gpg-homedir Signed-off-by: Giuseppe Scrivano --- tests/test-gpg-signed-commit.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test-gpg-signed-commit.sh') diff --git a/tests/test-gpg-signed-commit.sh b/tests/test-gpg-signed-commit.sh index 49fb4903..ba361c7a 100644 --- a/tests/test-gpg-signed-commit.sh +++ b/tests/test-gpg-signed-commit.sh @@ -37,6 +37,9 @@ ${OSTREE} show test2 | grep -o 'Found [[:digit:]] signature' > test2-show # tests will actually do verification assert_file_has_content test2-show 'Found 1 signature' +${OSTREE} show --gpg-homedir=${TEST_GPG_KEYHOME} test2 | grep -o 'Found [[:digit:]] signature' > test2-show +assert_file_has_content test2-show 'Found 1 signature' + # Now sign a commit with 3 different keys cd ${test_tmpdir} ${OSTREE} commit -b test2 -s "A GPG signed commit" -m "Signed commit body" --gpg-sign=${TEST_GPG_KEYID_1} --gpg-sign=${TEST_GPG_KEYID_2} --gpg-sign=${TEST_GPG_KEYID_3} --gpg-homedir=${TEST_GPG_KEYHOME} --tree=dir=files -- cgit v1.2.1