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

[PATCH] Extend t3404-rebase-interactive.sh test: "no changes are a nop"

From
Stephan Beyer <s-beyer@gmx.net>
Date
May 23, 2008, 23:13 UTC
Message-ID
<alpine.DEB.1.10.0805240101530.3980@euler.pkqs.net>

Now the test "no changes are a nop" checks additionally, that HEAD is commit I and a symbolic ref for branch2.

The new test fails on a situation like this, for example:
$ git branch -v
* (no branch) cac536e I
   branch1     1599c04 H
   branch2     cac536e I
   master      cb54291 E
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
---
  t/t3404-rebase-interactive.sh |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh
index b9e3dbd..623d784 100755
--- a/t/t3404-rebase-interactive.sh
+++ b/t/t3404-rebase-interactive.sh
@@ -96,7 +96,9 @@ chmod a+x fake-editor.sh

  test_expect_success 'no changes are a nop' '
  	git rebase -i F &&
-	test $(git rev-parse I) = $(git rev-parse HEAD)
+	test $(git rev-parse I) = $(git rev-parse HEAD) &&
+	test $(git rev-parse I) = $(git rev-parse branch2) &&
+	git symbolic-ref HEAD
  '

  test_expect_success 'test the [branch] option' '
-- 
1.5.5.1
Message 1 of 1 in “Extend t3404-rebase-interactive.sh test: "no changes are a nop"”
  1. Extend t3404-rebase-interactive.sh test: "no changes are a nop"Stephan Beyer, May 23, 2008

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.