From: Patrick Steinhardt Date: Wed, 08 Oct 2025 07:14:20 GMT Subject: Re: [PATCH 2/5] lib-gpg: allow tests with the GPGSM prereq first Message-ID: In-Reply-To: <20251007122958.1089680-3-christian.couder@gmail.com> On Tue, Oct 07, 2025 at 02:29:55PM +0200, Christian Couder wrote: > diff --git a/t/lib-gpg.sh b/t/lib-gpg.sh > index 937b876bd0..743985efab 100644 > --- a/t/lib-gpg.sh > +++ b/t/lib-gpg.sh > @@ -38,7 +38,7 @@ test_lazy_prereq GPG ' > # To export ownertrust: > # gpg --homedir /tmp/gpghome --export-ownertrust \ > # > lib-gpg/ownertrust > - mkdir "$GNUPGHOME" && > + mkdir -p "$GNUPGHOME" && > chmod 0700 "$GNUPGHOME" && > (gpgconf --kill all || : ) && > gpg --homedir "${GNUPGHOME}" --import \ Okay. I wonder why we even have to create the directory manually. We don't do it in the GPGSM prereq either, as gpgsm seems to handle this for us. Doesn't `gpg --homedir ... --import` create the home directory in a similar way? Patrick