git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] t4014-format-patch: Call test_tick before committing

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Aug 27, 2010, 20:28 UTC
Message-ID
<1282940896-18350-2-git-send-email-artagnon@gmail.com>
In-Reply-To
<1282940896-18350-1-git-send-email-artagnon@gmail.com>

Call test_tick before attempting to commit in the setup routine to preserve the order of the commits.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 t/t4014-format-patch.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index f87434b..a77eeed 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -12,24 +12,29 @@ test_expect_success setup '
 	for i in 1 2 3 4 5 6 7 8 9 10; do echo "$i"; done >file &&
 	cat file >elif &&
 	git add file elif &&
+	test_tick &&
 	git commit -m Initial &&
 	git checkout -b side &&
 
 	for i in 1 2 5 6 A B C 7 8 9 10; do echo "$i"; done >file &&
 	test_chmod +x elif &&
+	test_tick &&
 	git commit -m "Side changes #1" &&
 
 	for i in D E F; do echo "$i"; done >>file &&
 	git update-index file &&
+	test_tick &&
 	git commit -m "Side changes #2" &&
 	git tag C2 &&
 
 	for i in 5 6 1 2 3 A 4 B C 7 8 9 10 D E F; do echo "$i"; done >file &&
 	git update-index file &&
+	test_tick &&
 	git commit -m "Side changes #3 with \\n backslash-n in it." &&
 
 	git checkout master &&
 	git diff-tree -p C2 | git apply --index &&
+	test_tick &&
 	git commit -m "Master accepts moral equivalent of #2"
 
 '
-- 
1.7.2.2.409.gdbb11.dirty
Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 2 of 3 in “Fix counting problem in `format-patch -<n>`”
  1. 0/2 Fix counting problem in `format-patch -<n>`Ramkumar Ramachandra, Aug 27, 2010
  2. 1/2 t4014-format-patch: Call test_tick before committingRamkumar Ramachandra, Aug 27, 2010
  3. 2/2 format-patch: Don't go over merge commitsRamkumar Ramachandra, Aug 27, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.