]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1308-config-set: fix a test that has a typo
authorTanay Abhra <tanayabh@gmail.com>
Thu, 10 Oct 2019 12:35:34 +0000 (05:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Oct 2019 05:35:31 +0000 (14:35 +0900)
Change test 'find value_list for a key from a configset' to redirect the
result to 'expect' instead of 'except' which was a typo.

With this change, the test case actually fails because it uses
`configset_get_value`. Clearly, this was intended to be
`configset_get_value_multi` since the test expects a list of values
instead of a single value, so let's fix that, too.

Signed-off-by: Tanay Abhra <tanayabh@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1308-config-set.sh

index d0a2727b850a6a5fa855a5787a221ce1078f2c7c..7b4e1a63eba2ffc2083061285b1a6cbbcb9c253d 100755 (executable)
@@ -166,14 +166,14 @@ test_expect_success 'find value with highest priority from a configset' '
 '
 
 test_expect_success 'find value_list for a key from a configset' '
-       cat >except <<-\EOF &&
+       cat >expect <<-\EOF &&
+       lama
+       ball
        sam
        bat
        hask
-       lama
-       ball
        EOF
-       test-tool config configset_get_value case.baz config2 .git/config >actual &&
+       test-tool config configset_get_value_multi case.baz config2 .git/config >actual &&
        test_cmp expect actual
 '