1
0
mirror of https://github.com/git/git.git synced 2024-09-23 08:21:16 +02:00

git-check-attr: test that no output is written to stderr

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Michael Haggerty 2011-08-04 06:47:43 +02:00 committed by Junio C Hamano
parent d932f4eb9f
commit fa92f3233c

View File

@ -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
}