From 0ab73798b5bc703233195c1d37f96d977fc26ad8 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Sun, 13 Nov 2022 11:50:51 +0100 Subject: [PATCH] vc-list-files-tests: Avoid OpenPGP private key operations. * tests/test-vc-list-files-git.sh (GIT_CONFIG_GLOBAL): Set it to /dev/null. --- ChangeLog | 6 ++++++ tests/test-vc-list-files-git.sh | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 70ece5200a..d51a62a023 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2022-11-13 Simon Josefsson + + 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 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 -- 2.39.5