[applied] tests/runtestabidb?.sh.in: Fix git initialization

Message ID 87le5air6n.fsf@redhat.com
State New
Headers
Series [applied] tests/runtestabidb?.sh.in: Fix git initialization |

Commit Message

Dodji Seketeli April 18, 2024, 4:14 p.m. UTC
  Hello,

Not having the temporary git repository created in this test can lead to
an error in some CI environments.  Fixed thus.

	* tests/runtestabidb[1-2].sh.in: Initialize email & user name
          for the local git repository.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to the master branch.
---
 tests/runtestabidb1.sh.in | 3 +++
 tests/runtestabidb2.sh.in | 3 +++
 2 files changed, 6 insertions(+)
  

Patch

diff --git a/tests/runtestabidb1.sh.in b/tests/runtestabidb1.sh.in
index ad4b7e28..9a0dc059 100755
--- a/tests/runtestabidb1.sh.in
+++ b/tests/runtestabidb1.sh.in
@@ -31,6 +31,9 @@  function clean_env
 trap "clean_env" EXIT
 
 git init $gitdir
+cd $gitdir
+git config  user.email "john@tester.doe.com"
+git config  user.name "John Tester Doe"
 
 # Run a quick test against the local distribution, presumed via debuginfod
 unset DEBUGINFOD_VERBOSE DEBUGINFOD_PROGRESS
diff --git a/tests/runtestabidb2.sh.in b/tests/runtestabidb2.sh.in
index bff5fc53..f2ce7adf 100755
--- a/tests/runtestabidb2.sh.in
+++ b/tests/runtestabidb2.sh.in
@@ -35,6 +35,9 @@  function clean_env
 }
 
 git init $gitdir
+cd $gitdir
+git config  user.email "john@tester.doe.com"
+git config  user.name "John Tester Doe"
 
 # Build a little shared library, a binary against it, then
 # break it with an update