diff options
author | Simon Josefsson <simon@josefsson.org> | 2022-11-13 11:50:51 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2022-11-13 11:51:15 +0100 |
commit | 0ab73798b5bc703233195c1d37f96d977fc26ad8 (patch) | |
tree | a0532a45eda9093ea5d35c98181e766855e6fda4 | |
parent | 1db9041826f21c8cb705337636fe167f73e3c868 (diff) | |
download | gnulib-0ab73798b5bc703233195c1d37f96d977fc26ad8.tar.gz |
vc-list-files-tests: Avoid OpenPGP private key operations.
* tests/test-vc-list-files-git.sh (GIT_CONFIG_GLOBAL): Set it to /dev/null.
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | tests/test-vc-list-files-git.sh | 7 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2022-11-13 Simon Josefsson <simon@josefsson.org> + + vc-list-files-tests: Avoid OpenPGP private key operations. + * tests/test-vc-list-files-git.sh (GIT_CONFIG_GLOBAL): Set it to + /dev/null. + 2022-11-03 Bruno Haible <bruno@clisp.org> dynarray: Rename to glibc-internal/dynarray. diff --git a/tests/test-vc-list-files-git.sh b/tests/test-vc-list-files-git.sh index 28292322a0..d4e5743705 100755 --- a/tests/test-vc-list-files-git.sh +++ b/tests/test-vc-list-files-git.sh @@ -22,6 +22,13 @@ tmpdir=vc-git-$$ GIT_DIR= GIT_WORK_TREE=; unset GIT_DIR GIT_WORK_TREE +# Ignore local git configurations that may interact badly with +# commands below. For example, if the user has set +# commit.gpgsign=true in ~/.gitconfig the 'git commit' below will +# require a OpenPGP private key operation which trigger PIN prompts +# and unwanted hardware access on the developer's machine. +GIT_CONFIG_GLOBAL=/dev/null; export GIT_CONFIG_GLOBAL + fail=1 mkdir $tmpdir && cd $tmpdir && # without git, skip the test |