chiark / gitweb /
test suite: gitattributes: Do not try to set working-tree-encoding to true
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 20 Jun 2018 12:18:19 +0000 (13:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 20 Jun 2018 13:29:38 +0000 (14:29 +0100)
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 <ijackson@chiark.greenend.org.uk>
tests/tests/gitattributes

index 5be7d01..04c6b87 100755 (executable)
@@ -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