From: Dodji Seketeli <dodji@redhat.com>
To: libabigail@sourceware.org
Subject: [PATCH, applied] tests/runtestabidb?.sh.in: Fix git initialization
Date: Thu, 18 Apr 2024 18:14:24 +0200 [thread overview]
Message-ID: <87le5air6n.fsf@redhat.com> (raw)
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(+)
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
--
2.39.3
--
Dodji
reply other threads:[~2024-04-18 16:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87le5air6n.fsf@redhat.com \
--to=dodji@redhat.com \
--cc=libabigail@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).