From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#37679: [PATCH 0/2] Local git configuration interferes with testsuite Date: Sun, 29 Mar 2020 15:18:08 +0200 Message-ID: <20200329131810.23562-1-boskovits@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54973) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIkHs-0003hy-IX for bug-guix@gnu.org; Sun, 29 Mar 2020 22:36:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIkHr-0003eC-IA for bug-guix@gnu.org; Sun, 29 Mar 2020 22:36:28 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48645) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIkHr-0003du-EG for bug-guix@gnu.org; Sun, 29 Mar 2020 22:36:27 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIkHr-0004iM-Ay for bug-guix@gnu.org; Sun, 29 Mar 2020 22:36:27 -0400 In-Reply-To: Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 37679@debbugs.gnu.org Create a fake home in tests with a gitconfig so that the user configuration does not get picked up. I investigated how to solve this best, but git only respects HOME for the commands we are using. Also note that this does not affect libraries, only the git cli, as libraries do not use the environment variables. Gábor Boskovits (2): tests: Isolate git from user configuration. tests: Ignore files created by the testsuite. .gitignore | 4 +++- Makefile.am | 2 ++ build-aux/test-env.in | 4 ++++ tests/fake-home/.gitconfig | 21 +++++++++++++++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tests/fake-home/.gitconfig -- 2.25.0