[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50359] [PATCH v3 2/3] tests: git: Make 'tag' directive non-interact
From: |
Xinglu Chen |
Subject: |
[bug#50359] [PATCH v3 2/3] tests: git: Make 'tag' directive non-interactive. |
Date: |
Fri, 17 Sep 2021 10:04:44 +0200 |
When running 'git tag TAGNAME', Git will open up the user's default text
editor to make them write a message. This is not desirable when running
tests.
* guix/tests/git.scm (populate-git-repository): Make the 'tag' directive take
an additional argument, and pass it to the '-m' flag.
* tests/channels.scm ("channel-news, one entry"): Adjust accordingly.
---
guix/tests/git.scm | 4 ++--
tests/channels.scm | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/guix/tests/git.scm b/guix/tests/git.scm
index e11541e83b..e8d4946e87 100644
--- a/guix/tests/git.scm
+++ b/guix/tests/git.scm
@@ -87,8 +87,8 @@ Return DIRECTORY on success."
((('commit text ('signer fingerprint)) rest ...)
(git "commit" "-m" text (string-append "--gpg-sign=" fingerprint))
(loop rest))
- ((('tag name) rest ...)
- (git "tag" name)
+ ((('tag name text) rest ...)
+ (git "tag" "-m" text name)
(loop rest))
((('branch name) rest ...)
(git "branch" name)
diff --git a/tests/channels.scm b/tests/channels.scm
index 0264369d9e..8f7ff1e7a8 100644
--- a/tests/channels.scm
+++ b/tests/channels.scm
@@ -329,7 +329,7 @@
(commit "first commit")
(add "src/a.txt" "A")
(commit "second commit")
- (tag "tag-for-first-news-entry")
+ (tag "tag-for-first-news-entry" "First news entry!")
(add "news.scm"
,(lambda (repository)
(let ((previous
--
2.33.0
- [bug#50359] [PATCH 2/3] tests: git: Make 'tag' directive non-interactive., (continued)
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Xinglu Chen, 2021/09/10
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Ludovic Courtès, 2021/09/13
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Sarah Morgensen, 2021/09/16
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Xinglu Chen, 2021/09/16
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Sarah Morgensen, 2021/09/16
- [bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., Xinglu Chen, 2021/09/17
[bug#50359] [PATCH 1/3] tests: git: Don't read from the users global Git config file., Xinglu Chen, 2021/09/10
[bug#50359] [PATCH v3 0/3] Add 'generic-git' updater, Xinglu Chen, 2021/09/17
[bug#50359] [PATCH 3/3] import: Add 'generic-git' updater., iskarian, 2021/09/15