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

Re: [PATCH] Add basic test-script for git-submodule

From
Johannes Sixt <j.sixt@eudaptics.com>
Date
Jun 1, 2007, 07:56 UTC
Message-ID
<465FD11C.6B1D5172@eudaptics.com>
In-Reply-To
<op.ts8d71b89pspc6@localhost>
Lars Hjemli wrote:
> +test_expect_success 'status should only print one line' '
> +       lines=$(git-submodule status | wc -l)
&& is missing.
> +       test "$lines" = "1"

Please don't put output of wc in quotes because some versions of wc emit padding:

	test $lines = 1
(without the quotes around 1 - like in other test scripts).
-- Hannes
Previous: Lars HjemliNext: Lars Hjemli
Message 6 of 9 in “Add basic test-script for git-submodule”
  1. Add basic test-script for git-submoduleLars Hjemli, May 27, 2007
  2. Junio C HamanoMay 29, 2007
  3. Lars HjemliMay 30, 2007
  4. Junio C HamanoJun 1, 2007
  5. Lars HjemliJun 1, 2007
  6. Johannes SixtJun 1, 2007
  7. Lars HjemliJun 1, 2007
  8. Junio C HamanoJun 1, 2007
  9. Add basic test-script for git-submoduleLars Hjemli, Jun 2, 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.