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

[PATCH 1/3] t/t5400-send-pack.sh: use the canonical test_expect_success syntax

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jan 18, 2011, 21:41 UTC
Message-ID
<1295386896-21828-1-git-send-email-avarab@gmail.com>

Change t/t5400-send-pack.sh to use the usual test_expect_success syntax, i.e. change:

    test_expect_success \
        'description'
To:
    test_expect_success 'description'
Like the rest of the tests in t/t5400-send-pack.sh do.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 t/t5400-send-pack.sh |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index b0b2684..656ab1a 100755
--- a/t/t5400-send-pack.sh
+++ b/t/t5400-send-pack.sh
@@ -76,8 +76,7 @@ test_expect_success 'refuse pushing rewound head without --force' '
 	test "$victim_head" = "$pushed_head"
 '
 
-test_expect_success \
-        'push can be used to delete a ref' '
+test_expect_success 'push can be used to delete a ref' '
 	( cd victim && git branch extra master ) &&
 	git send-pack ./victim :extra master &&
 	( cd victim &&
-- 
1.7.2.3
Next: Ævar Arnfjörð Bjarmason
Message 1 of 4 in “t/t5400-send-pack.sh: use the canonical test_expect_success syntax”
  1. 1/3 t/t5400-send-pack.sh: use the canonical test_expect_success syntaxÆvar Arnfjörð Bjarmason, Jan 18, 2011
  2. 2/3 t/t5400-send-pack.sh: add test_when_finished commandsÆvar Arnfjörð Bjarmason, Jan 18, 2011
  3. Junio C HamanoJan 18, 2011
  4. 3/3 t/t5400-send-pack.sh: re-indent subshell invocationÆvar Arnfjörð Bjarmason, Jan 18, 2011

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.