Merge branch 'ch/t6300-verify-commit-test-cleanup'

Test clean-up.

* ch/t6300-verify-commit-test-cleanup:
  t/t6300: drop magic filtering
  t/lib-gpg: forcibly run a trustdb update
maint
Junio C Hamano 2023-08-31 14:31:42 -07:00
commit 967bfc5894
2 changed files with 2 additions and 4 deletions

View File

@ -45,6 +45,7 @@ test_lazy_prereq GPG '
"$TEST_DIRECTORY"/lib-gpg/keyring.gpg &&
gpg --homedir "${GNUPGHOME}" --import-ownertrust \
"$TEST_DIRECTORY"/lib-gpg/ownertrust &&
gpg --homedir "${GNUPGHOME}" --update-trustdb &&
gpg --homedir "${GNUPGHOME}" </dev/null >/dev/null \
--sign -u committer@example.com
;;

View File

@ -1763,10 +1763,7 @@ test_expect_success GPGSSH 'setup for signature atom using ssh' '
'

test_expect_success GPG2 'bare signature atom' '
git verify-commit first-signed 2>out.raw &&
grep -Ev "checking the trustdb|PGP trust model" out.raw >out &&
head -3 out >expect &&
tail -1 out >>expect &&
git verify-commit first-signed 2>expect &&
echo >>expect &&
git for-each-ref refs/tags/first-signed \
--format="%(signature)" >actual &&