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

[PATCH] stop t1400 hiding errors in tests

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 8, 2007, 23:41 UTC
Message-ID
<20071108234139.GD4899@steel.home>
In-Reply-To
<20071108232751.GC4899@steel.home>

The last rm in the test was lacking an "&&" before it, which caused the errors in the commands be silently hidden.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
Alex Riesen, Fri, Nov 09, 2007 00:27:52 +0100:
Show 11 quoted lines
> Kristian Høgsberg, Thu, Nov 08, 2007 17:59:00 +0100:
> > This makes git commit a builtin and moves git-commit.sh to
> 
> Applied instead of 00c8febf563da on Junio's pu it breaks t1400:
> 
> * FAIL 29: git-commit logged updates
>         diff expect .git/logs/refs/heads/master
> 
> 
> Which is not the test actually failed. The failed one is 28, but the
> last "rm -f M" killed the error because of missed "&&" before it.

just separated the fix into a patch of its own. Johannes already took care of the problem with launch_editor not reading the message file.

 t/t1400-update-ref.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh
index ce045b2..a90824b 100755
--- a/t/t1400-update-ref.sh
+++ b/t/t1400-update-ref.sh
@@ -205,7 +205,7 @@ test_expect_success \
 	 echo $h_TEST >.git/MERGE_HEAD &&
 	 GIT_AUTHOR_DATE="2005-05-26 23:45" \
 	 GIT_COMMITTER_DATE="2005-05-26 23:45" git-commit -F M &&
-	 h_MERGED=$(git rev-parse --verify HEAD)
+	 h_MERGED=$(git rev-parse --verify HEAD) &&
 	 rm -f M'
 
 cat >expect <<EOF
-- 
1.5.3.5.626.g8f33b
Previous: Alex RiesenNext: Junio C Hamano
Message 4 of 5 in “Port git commit to C.”
  1. Port git commit to C.Kristian Høgsberg, Nov 8, 2007
  2. Junio C HamanoNov 8, 2007
  3. Alex RiesenNov 8, 2007
  4. stop t1400 hiding errors in testsAlex Riesen, Nov 8, 2007
  5. Junio C HamanoNov 8, 2007

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.