Skip to content

Commit b4b77ea

Browse files
pks-tttaylorr
authored andcommitted
t/lib-gpg: fix setup of GNUPGHOME in MinGW
In "t/lib-gpg.sh" we set up the "GNUPGHOME" environment variable to point to a test-specific directory. This is done by using "$PWD/gpghome" as value, where "$PWD" is the current test's trash directory. This is broken for MinGW though because "$PWD" will use Windows-style paths that contain drive letters. What we really want in this context is a Unix-style path, which we can get by using `$(pwd)` instead. It is somewhat puzzling that nobody ever hit this issue, but it may easily be that nobody ever tests on Windows with GnuPG installed, which would make us skip those tests. Adapt the code accordingly to fix tests using this library. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent 6b1f9e9 commit b4b77ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/lib-gpg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# executed in an eval'ed subshell that changes the working directory to a
77
# temporary one.
88

9-
GNUPGHOME="$PWD/gpghome"
9+
GNUPGHOME="$(pwd)/gpghome"
1010
export GNUPGHOME
1111

1212
test_lazy_prereq GPG '

0 commit comments

Comments
 (0)