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

[PATCH jc/maint-add-p-coalesce-fix] t3701: ensure correctly set up repository after skipped tests

From
Johannes Sixt <j.sixt@viscovery.net>
Date
May 25, 2009, 12:07 UTC
Message-ID
<4A1A8A1B.3040408@viscovery.net>
From: Johannes Sixt <j6t@kdbg.org>

There are two tests that are skipped if file modes are not obeyed by the file system. In this case, the subsequent test failed because the repository was in an unexpected state. This corrects it.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 t/t3701-add-interactive.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh
index 5cdb83d..fd2a55a 100755
--- a/t/t3701-add-interactive.sh
+++ b/t/t3701-add-interactive.sh
@@ -165,6 +165,12 @@ test_expect_success FILEMODE 'stage mode but

 # end of tests disabled when filemode is not usable

+test_expect_success 'setup again' '
+	git reset --hard &&
+	test_chmod +x file &&
+	echo content >>file
+'
+
 # Write the patch file with a new line at the top and bottom
 cat >patch <<EOF
 index 180b47c..b6f2c08 100644
-- 
1.6.3.1.1240.gc4fde
Next: Junio C Hamano
Message 1 of 2 in “t3701: ensure correctly set up repository after skipped tests”
  1. t3701: ensure correctly set up repository after skipped testsJohannes Sixt, May 25, 2009
  2. Junio C HamanoMay 25, 2009

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.