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:

committed by
Junio C Hamano

parent
d932f4eb9f
commit
fa92f3233c
@ -9,9 +9,10 @@ attr_check () {
|
|||||||
path="$1"
|
path="$1"
|
||||||
expect="$2"
|
expect="$2"
|
||||||
|
|
||||||
git check-attr test -- "$path" >actual &&
|
git check-attr test -- "$path" >actual 2>err &&
|
||||||
echo "$path: test: $2" >expect &&
|
echo "$path: test: $2" >expect &&
|
||||||
test_cmp expect actual
|
test_cmp expect actual &&
|
||||||
|
test_line_count = 0 err
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user