From 61016923b2a47b0550e36ed5f5a929d401811b42 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 20 Jun 2018 13:18:19 +0100 Subject: test suite: gitattributes: Do not try to set working-tree-encoding to true Part of the fix to #901900. This suppresses the sort-of-spurious test failure which occurs because the working-tree-encoding attribute is discovered and then set to an inappropriate value. Signed-off-by: Ian Jackson --- tests/tests/gitattributes | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes index 5be7d01..04c6b87 100755 --- a/tests/tests/gitattributes +++ b/tests/tests/gitattributes @@ -28,7 +28,14 @@ badattr1 () { badattr () { attrname=$1; shift - badattr1 $attrname-set $attrname + + case "$attrname" in + working-tree-encoding) ;; + *) + badattr1 $attrname-set $attrname + ;; + esac + badattr1 $attrname-unset -$attrname badattr1 $attrname-unspec \!$attrname local val -- cgit v1.2.3