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

[PATCH v10 2/8] t2400: cleanup created worktree in test

From
Jacob Abel <jacobabel@nullpo.dev>
Date
May 7, 2023, 12:06 UTC
Message-ID
<20230507120530.14669-3-jacobabel@nullpo.dev>
In-Reply-To
<20230507120530.14669-1-jacobabel@nullpo.dev>
Signed-off-by: Jacob Abel <jacobabel@nullpo.dev>
---
 t/t2400-worktree-add.sh | 1 +
 1 file changed, 1 insertion(+)
diff --git a/t/t2400-worktree-add.sh b/t/t2400-worktree-add.sh
index d587e0b20d..a3f108347a 100755
--- a/t/t2400-worktree-add.sh
+++ b/t/t2400-worktree-add.sh
@@ -326,6 +326,7 @@ test_expect_success 'add -B' '
 '

 test_expect_success 'add --quiet' '
+	test_when_finished "git worktree remove -f -f another-worktree" &&
 	git worktree add --quiet another-worktree main 2>actual &&
 	test_must_be_empty actual
 '
--
2.39.3
Previous: Jacob AbelNext: Jacob Abel
Message 3 of 4 in “worktree: Support `--orphan` when creating new worktrees”
  1. 0/8 worktree: Support `--orphan` when creating new worktreesJacob Abel, May 7, 2023
  2. 1/8 worktree add: include -B in usage docsJacob Abel, May 7, 2023
  3. 2/8 t2400: cleanup created worktree in testJacob Abel, May 7, 2023
  4. Jacob AbelMay 7, 2023

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.