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

[PATCH v2 1/6] git-check-attr: test that no output is written to stderr

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
Aug 4, 2011, 04:47 UTC
Message-ID
<1312433268-11385-2-git-send-email-mhagger@alum.mit.edu>
In-Reply-To
<1312433268-11385-1-git-send-email-mhagger@alum.mit.edu>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
---
 t/t0003-attributes.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh
index 5acb2d5..4f2fbc0 100755
--- a/t/t0003-attributes.sh
+++ b/t/t0003-attributes.sh
@@ -9,9 +9,10 @@ attr_check () {
 	path="$1"
 	expect="$2"
 
-	git check-attr test -- "$path" >actual &&
+	git check-attr test -- "$path" >actual 2>err &&
 	echo "$path: test: $2" >expect &&
-	test_cmp expect actual
+	test_cmp expect actual &&
+	test_line_count = 0 err
 
 }
 
-- 
1.7.6.8.gd2879
Previous: Michael HaggertyNext: Michael Haggerty
Message 2 of 7 in “git-check-attr should work for relative paths”
  1. 0/6 git-check-attr should work for relative pathsMichael Haggerty, Aug 4, 2011
  2. 1/6 git-check-attr: test that no output is written to stderrMichael Haggerty, Aug 4, 2011
  3. 2/6 git-check-attr: Demonstrate problems with unnormalized pathsMichael Haggerty, Aug 4, 2011
  4. 3/6 git-check-attr: Demonstrate problems with relative pathsMichael Haggerty, Aug 4, 2011
  5. 4/6 git-check-attr: Normalize pathsMichael Haggerty, Aug 4, 2011
  6. 5/6 test-path-utils: Add subcommand "absolute_path"Michael Haggerty, Aug 4, 2011
  7. 6/6 test-path-utils: Add subcommand "prefix_path"Michael Haggerty, Aug 4, 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.